OFFSET
1,2
EXAMPLE
a(4) = 5 since 4 = 11[3] (i.e. written in base 2) and 5! = 11110[3] is the least factorial to have 11 as most significant digits in base 3.
PROG
(PARI) A155892(n)={ local( F=1, k=1 ); while( F\1!=n, F*=k++; while( F>=n+1, F/=3 )); k}
CROSSREFS
KEYWORD
base,nonn
AUTHOR
M. F. Hasler, Feb 01 2009
STATUS
approved