OFFSET
1,2
COMMENTS
Zeros become more common as n increases. - Sean A. Irvine, Jan 12 2025
FORMULA
For n >= 2, a(n) = ceiling((n-1)/log_10(n)), if ceiling((n-1)/log_10(n)) < ceiling(n/log_10(n)), and 0 otherwise. - Amiram Eldar, Jan 13 2025
MATHEMATICA
a[n_] := Module[{e1 = Ceiling[(n-1) * Log[n, 10]], e2 = Ceiling[n * Log[n, 10]]}, If[e1 == e2, 0, n^e1]]; a[1] = 1; Array[a, 23] (* Harvey P. Dale, Mar 04 2013, corrected by Amiram Eldar, Jan 13 2025 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 29 2002
EXTENSIONS
More terms from Harvey P. Dale, Mar 04 2013
a(17) and a(19) corrected and more terms from Sean A. Irvine, Jan 12 2025
STATUS
approved