OFFSET
1,2
COMMENTS
Largest m! which divides n.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10080
Tyler Ball, Joanne Beckford, Paul Dalenberg, Tom Edgar, Tina Rajabi, Some Combinatorics of Factorial Base Representations, J. Int. Seq., Vol. 23 (2020), Article 20.3.3.
FORMULA
EXAMPLE
3! = 6 divides 12, so a(12) = 6.
MATHEMATICA
With[{rf=Reverse[Range[7]!]}, Table[SelectFirst[rf, Divisible[n, #]&], {n, 120}]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Nov 05 2017 *)
PROG
(PARI) A055770(n) = { my(m=1, i=2); while(!(n%m), m *= i; i++); return(m/(i-1)); } \\ Antti Karttunen, Dec 19 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Jul 12 2000
EXTENSIONS
Name changed, old name moved to comments by Antti Karttunen, Dec 19 2018
STATUS
approved