OFFSET
1,6
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..10000
EXAMPLE
6^6 is 46656 with 3 6's, hence a(6) = 3.
MATHEMATICA
a[n_] := Length@ StringPosition[ToString[n^n], ToString[n], Overlaps -> False]; (* Giovanni Resta, Jan 22 2014 *)
PROG
(Python)
from itertools import count
a=(str(n**n).count(str(n)) for n in count(1))
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Christian Perfect, Jan 22 2014
STATUS
approved