A121856 a(n) = Floor(e*sqrt(n)).
0, 2, 3, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 23, 23
Offset: 0
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Programs
-
Magma
[Floor(Exp(1)*Sqrt(n)): n in [0..50]]; // G. C. Greubel, Oct 28 2017
-
Mathematica
Floor[E Sqrt[Range[0,80]]] (* Harvey P. Dale, May 16 2012 *)
-
PARI
for(n=0,50, print1(floor(exp(1)*sqrt(n)), ", ")) \\ G. C. Greubel, Oct 28 2017
Extensions
Offset corrected by Harvey P. Dale, May 16 2012