login
A213857
Least m such that n! <= 3^m.
5
1, 1, 2, 3, 5, 6, 8, 10, 12, 14, 16, 19, 21, 23, 26, 28, 31, 34, 36, 39, 42, 45, 47, 50, 53, 56, 59, 62, 65, 68, 72, 75, 78, 81, 84, 88, 91, 94, 98, 101, 104, 108, 111, 115, 118, 122, 125, 129, 132, 136, 139, 143, 146, 150, 154, 157, 161, 165, 168, 172, 176
OFFSET
1,3
COMMENTS
Also the number of digits in the ternary representation of n!. - Martin Renner, Jan 03 2022
LINKS
EXAMPLE
a(8) = 10 because 3^9 < 8! <= 3^10.
MAPLE
seq(nops(convert(n!, base, 3)), n=1..100); # Martin Renner, Jan 03 2022
MATHEMATICA
Table[m=1; While[n!>3^m, m++]; m, {n, 1, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 17 2012
STATUS
approved