[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A248774
Greatest k such that k^7 divides n!
3
1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 4, 4, 12, 12, 12, 12, 12, 12, 24, 24, 24, 24, 24, 24, 360, 360, 720, 720, 720, 720, 720, 720, 1440, 1440, 1440, 1440, 1440, 1440, 1440, 4320, 8640, 8640, 8640, 60480, 60480, 60480, 120960, 120960, 120960, 120960
OFFSET
1,8
COMMENTS
Every term divides all its successors.
LINKS
EXAMPLE
a(8) = 2 because 2^7 divides 8! and if k > 2 then k^7 does not divide 8!.
MATHEMATICA
z = 50; f[n_] := f[n] = FactorInteger[n!]; r[m_, x_] := r[m, x] = m*Floor[x/m];
u[n_] := Table[f[n][[i, 1]], {i, 1, Length[f[n]]}];
v[n_] := Table[f[n][[i, 2]], {i, 1, Length[f[n]]}];
p[m_, n_] := p[m, n] = Product[u[n][[i]]^r[m, v[n]][[i]], {i, 1, Length[f[n]]}];
m = 7; Table[p[m, n], {n, 1, z}] (* A248773 *)
Table[p[m, n]^(1/m), {n, 1, z}] (* A248774 *)
Table[n!/p[m, n], {n, 1, z}] (* A248775 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 14 2014
STATUS
approved