OFFSET
1,3
COMMENTS
Limit_{n -> oo} a(n)/n = 1. [edited by Robert Israel, Nov 09 2022]
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ n. - Charles R Greathouse IV, Nov 17 2022
EXAMPLE
a(3) = 2 as 3*4*5 > 3^3. but 3*4 < 3^3.
MAPLE
f:= proc(n) local k, s, t;
t:= n^n;
s:= 1;
for k from 0 do
s:= s*(n+k);
if s >= t then return k fi
od;
end proc:
map(f, [$1..100]); # Robert Israel, Nov 09 2022
MATHEMATICA
a[n_] := Module[{k, nn = n^n, p = 1}, For[k = 0, True, k++, p = p(n+k); If[p >= nn, Return[k]]]];
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, May 23 2023 *)
PROG
(PARI) a(n) = my(x=n^n, p=1); for (k=0, oo, p*=(n+k); if (p>=x, return(k))); \\ Michel Marcus, Nov 17 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 20 2002
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Oct 21 2002
STATUS
approved