OFFSET
0,3
LINKS
Zhao Hui Du, Table of n, a(n) for n = 0..100
FORMULA
a(n) = A018858(n!).
EXAMPLE
a(4) = 5 because 3^5 = 243 is the smallest power of 3 beginning with 4! = 24.
MATHEMATICA
a[n_] := Module[{target = IntegerDigits[n!], k = 0},
While[UnsameQ[Take[IntegerDigits[3^k], Length@target], target],
k++]; k];
Table[a[n], {n, 0, 8}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zhining Yang, Jul 23 2024
EXTENSIONS
a(13) onwards from Zhao Hui Du, Oct 03 2024
STATUS
approved