OFFSET
1,2
EXAMPLE
a(3) = 5 since 5!=120 is the least factorial to start with digit "3" when written in base 6. a(8) = 26 since 8 = 12[6] (i.e. written in base 6) and 26! is the smallest factorial to start with digits "12" when written in base 6.
PROG
(PARI) A155896(n)={ local( F=1, k=1 ); while( F\1!=n, F*=k++; while( F>=n+1, F/=6)); k}
CROSSREFS
KEYWORD
base,nonn
AUTHOR
M. F. Hasler, Feb 01 2009
STATUS
approved