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

A092914
a(n) = (n-1)*(n-2)*...*(n-r) with the least value of r so that n divides a(n).
3
60, 0, 840, 20160, 15120, 0, 7920, 0, 8648640, 240240, 3603600, 0, 8910720, 0, 1395360, 390700800, 14079294028800, 0, 212520, 7117005772800, 32382376266240000, 1133836704000, 4475671200, 0, 14250600, 0, 318073392000
OFFSET
6,1
COMMENTS
Analogous to the Kempner sequence A002034 where one goes forwards instead of backwards.
Least multiple of n of the form (n-1)!/k! if n is composite, 0 if n is prime.
a(1) = ... = a(5) = 0, so offset is set to 6. In fact 4 is the only composite n such that a(n) = 0. a(2p) = (2p-1)!/(p-1)! if p is a prime.
LINKS
EXAMPLE
9 divides 8*7*6*5*4*3 = 20160 but 9 does not divide 8*7*6*5*4, so a(9) = 20160.
MATHEMATICA
Table[SelectFirst[FoldList[Times, Range[n-1, 0, -1]], Divisible[#, n]&], {n, 6, 40}] (* Harvey P. Dale, Jul 29 2015 *)
PROG
(PARI) m=32; for(n=6, m, r=1; p=n-r; while(r<=n&&p%n>0, r++; p=p*(n-r)); print1(p, ", "))
CROSSREFS
Sequence in context: A093403 A087535 A058931 * A022083 A174675 A016532
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Mar 16 2004
EXTENSIONS
Edited and extended by Klaus Brockhaus, Mar 17 2004
STATUS
approved