This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A135034 #26 Nov 04 2024 17:14:56 %S A135034 0,1,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6, %T A135034 6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9, %U A135034 9,9,9,9,9,9,9,9 %N A135034 Positive integers n repeated 2n-1 times, with a leading a(0) = 0. Also: ceiling of square root of n. %H A135034 Harvey P. Dale, <a href="/A135034/b135034.txt">Table of n, a(n) for n = 0..1000</a> %F A135034 a(n) = ceiling(sqrt(n)). %F A135034 a(n) = A003059(n), for n >= 1. - _R. J. Mathar_, Jun 18 2008 %e A135034 a(1) = ceiling(sqrt(1)) = 1 %e A135034 a(6) = ceiling(sqrt(6)) = 3 %t A135034 Table[Ceiling[Sqrt[n]],{n,0,100}] (* _Mohammad K. Azarian_, Jun 15 2016 *) %t A135034 Table[PadRight[{},2n-1,n],{n,0,10}]//Flatten (* _Harvey P. Dale_, May 15 2022 *) %o A135034 (PARI) A135034(n)=ceil(sqrt(n)) \\ _M. F. Hasler_, Nov 12 2017 %o A135034 (Python) %o A135034 from math import isqrt %o A135034 def A135034(n): return isqrt(n-1)+1 if n else 0 # _Chai Wah Wu_, Nov 04 2024 %Y A135034 Cf. A005408, A003059 (restriction to positive indices), A000194 (round(sqrt(n))), A000196 (floor(sqrt(n))). %Y A135034 Partial sums of A010052. %K A135034 easy,nonn %O A135034 0,3 %A A135034 _William A. Tedeschi_, Feb 10 2008 %E A135034 Edited and corrected by _M. F. Hasler_, Nov 12 2017