login
A121900
a(n) = ceiling((Pi - e)*sqrt(n)).
3
0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 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
OFFSET
0,7
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..999 [Offset shifted by Georg Fischer, Sep 02 2022]
MATHEMATICA
Table[Ceiling[(Pi - E) Sqrt[n]], {n, 0, 110}] (* Vincenzo Librandi, Feb 21 2013 *)
PROG
(PARI) for(n=0, 50, print1(ceil((Pi - exp(1))*sqrt(n)), ", ")) \\ G. C. Greubel, Oct 28 2017
(Magma) C<i> := ComplexField(); [Ceiling((Pi(C) - Exp(1))*Sqrt(n)): n in [0..50]]; // G. C. Greubel, Oct 28 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Sep 01 2006
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
Offset changed to 0 by Georg Fischer, Sep 02 2022
STATUS
approved