login
A127033
Maximal value of m such that 7^m <= n!: a(n) = floor( log(n!) / log(7) ).
11
0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 15, 17, 18, 20, 21, 23, 24, 26, 28, 29, 31, 33, 34, 36, 38, 40, 41, 43, 45, 47, 49, 51, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96
OFFSET
1,5
LINKS
MATHEMATICA
Table[Floor[Log[n!]/Log[7]], {n, 1, 100}] (* G. C. Greubel, Dec 14 2016 *)
PROG
(PARI) a(n)=lngamma(n+1)\log(7) \\ Charles R Greathouse IV, Sep 04 2015
(PARI) a(n)=logint(n!, 7) \\ Charles R Greathouse IV, Sep 04 2015
(Magma) [Floor(Log(Factorial(n)) / Log(7)) : n in [1..100]]; // Vincenzo Librandi, Dec 15 2016
KEYWORD
nonn
AUTHOR
Artur Jasinski, Jan 03 2007
STATUS
approved