A135662 a(n) = ceiling(sqrt(n) - n^(1/4)).
0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[Ceiling(n^(1/2) - n^(1/4)): n in [1..100]]; // Vincenzo Librandi, Feb 16 2013
-
Mathematica
Table[Ceiling[n^(1/2) - n^(1/4)], {n, 100}] (* Vincenzo Librandi, Feb 16 2013 *)
Extensions
Offset corrected by M. F. Hasler, Nov 17 2008