OFFSET
1,2
FORMULA
a(n) = ceiling((n-1)/log_10(n)), n > 1. - Vladeta Jovovic, Dec 23 2001
EXAMPLE
a(15) = 12, as 15^12 = 129746337890625 has 15 digits, while 15^11 = 8649755859375 has only 13 digits.
MAPLE
f := []: for i from 1 to 50 do for j from 1 do if length(i^j) >= i then f := [op(f), j]; break fi; od; od; op(f);
MATHEMATICA
Join[{1}, Table[Ceiling[(n-1)/Log[10, n]], {n, 2, 70}]] (* Harvey P. Dale, Apr 14 2016 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, May 06 2001
EXTENSIONS
Corrected and extended by Asher Auel, May 14 2001
Offset corrected by Sean A. Irvine, Feb 18 2023
STATUS
approved