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”).

A071960
Largest k >= 0 such that Product_{i=0..k} (n+i) divides n!.
1
0, 0, 0, 0, 1, 0, 3, 2, 1, 0, 1, 0, 3, 2, 1, 0, 1, 0, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 1, 0, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0, 1, 0, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 1, 0, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0, 1, 0, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0, 1, 0, 3, 2, 1
OFFSET
1,7
COMMENTS
If a(n) > 0, a(n+1) = a(n) - 1.
LINKS
FORMULA
a(n) = A064778(n) - n.
EXAMPLE
7*8*9*10 divides 7! hence a(7) = 3.
PROG
(PARI) for(n=1, 150, s=0; while(sum(i=1, s, n!%(n+i))==0, s++); print1(s-1, ", "))
CROSSREFS
Cf. A064778.
Sequence in context: A242928 A214845 A366766 * A056898 A204065 A275281
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Jun 25 2002
STATUS
approved