login
A121928
a(n) = ceiling(n*(e^Pi - Pi^e)).
2
0, 1, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9, 10, 11, 11, 12, 13, 13, 14, 15, 15, 16, 17, 18, 18, 19, 20, 20, 21, 22, 22, 23, 24, 24, 25, 26, 26, 27, 28, 28, 29, 30, 30, 31, 32, 33, 33, 34, 35, 35, 36, 37, 37, 38, 39, 39, 40, 41, 41, 42, 43, 43, 44, 45, 45, 46, 47, 48, 48, 49, 50, 50
OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..999 [Offset shifted by Georg Fischer, Sep 02 2022]
MATHEMATICA
With[{a = E^Pi - Pi^E}, Ceiling[a Range[0, 80]]] (* Vincenzo Librandi, Feb 21 2013 *)
PROG
(PARI) for(n=0, 50, print1(ceil(n*(exp(Pi) - Pi^exp(1))), ", ")) \\ G. C. Greubel, Nov 06 2017
(Magma) C<i> := ComplexField(); [Ceiling(n*(Exp(1)^Pi(C) - Pi(C)^Exp(1) )): n in [0..50]]; // G. C. Greubel, Nov 06 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Sep 02 2006
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
Offset changed to 0 by Georg Fischer, Sep 02 2022
STATUS
approved