OFFSET
0,11
COMMENTS
Blecksmith, Filaseta, & Nicol show that lim a(k^n) = infinity whenever k is not a power of 10. More generally, in base b, the limit is infinity exactly when log k/log b is irrational. - Charles R Greathouse IV, Jan 29 2014
Every positive integers occurs infinitely many times. See A297770 for a guide to related sequences. - Clark Kimberling, Feb 04 2018
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..10000
Richard Blecksmith, Michael Filaseta, and Charles Nicol, A result on the digits of a^n, Acta Arithmetica 64 (1993), pp. 331-339.
MATHEMATICA
Table[Length[Split[IntegerDigits[n]]], {n, 0, 90}] (* Harvey P. Dale, Aug 24 2016 *)
PROG
(PARI) a(n)=my(d=digits(n)); #d-sum(i=2, #d, d[i]==d[i-1]) \\ Charles R Greathouse IV, Jan 29 2014
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved