login
A062458
Nearest integer to (n+1)^(n+1)/n^n.
0
1, 4, 7, 9, 12, 15, 18, 20, 23, 26, 29, 31, 34, 37, 39, 42, 45, 48, 50, 53, 56, 58, 61, 64, 67, 69, 72, 75, 77, 80, 83, 86, 88, 91, 94, 96, 99, 102, 105, 107, 110, 113, 116, 118, 121, 124, 126, 129, 132, 135, 137, 140, 143, 145, 148, 151, 154, 156, 159, 162, 164
OFFSET
0,2
FORMULA
For n>0: a(n)=round(exp(1)*(n+1/2-1/24/n)). Coming from: (n+1)^(n+1)/n^n=exp(1)*(n+1/2-1/24/n)+O(1/n^2) - Benoit Cloitre, Apr 24 2008
MATHEMATICA
Round[(1 + n)^(1 + n)/n^n]
PROG
(PARI) a(n)=if(n<1, 1, round(exp(1)*(n+1/2-1/24/n))) - Benoit Cloitre, Apr 24 2008
CROSSREFS
Cf. A060644.
Sequence in context: A190438 A189526 A184589 * A180122 A080902 A285210
KEYWORD
nonn,easy
AUTHOR
Olivier Gérard, Jun 23 2001
STATUS
approved