OFFSET
1,9
EXAMPLE
a(6)=1 because 6 appears one time in 6!^6 = 139314069504000000.
PROG
(PARI) {mcf(d, n)=my(c=0, m=10^#digits(d)); while(n>0, if(n%m==d, c++); n\=10; ); c }
a(n) = {mcf(n, (n!)^n)}
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Dec 16 2002
STATUS
approved