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

A060977
The nonprimes n!+2 ... n!+n are the a(n)-th string of n-1 prime-free consecutive terms, the first such one being the string of composite numbers A000230(k)+1 through A001632(k)-1 when n=2k, or through A001632(k)-2 when n=2k-1.
0
0, 1, 1, 6, 27, 208, 1755, 16363, 161685, 1736749, 20022517, 250566242, 3359504253
OFFSET
1,4
COMMENTS
The sequence grows rapidly, like the factorial function.
EXAMPLE
The prime-free sequence 4! + 2 through 4! + 4, i.e., {26, 27, 28}, ranks as the a(4) = 6th triple of consecutive composite numbers, as it comes after {8, 9, 10}, {14, 15, 16}, {20, 21, 22}, {24, 25, 26}, {25, 26, 27}.
MATHEMATICA
Do[ c = 0; a = Table[0, {n - 1} ]; k = 2; While[ k < n! + n + 1, a = Delete[a, 1]; a = Append[a, PrimeQ[k] ]; If[ Union[a] == {False}, c++ ]; k++ ]; Print[c], {n, 2, 12} ]
CROSSREFS
Sequence in context: A092854 A223557 A289022 * A267630 A351737 A047778
KEYWORD
more,nonn,nice
AUTHOR
Lekraj Beedassy, May 10 2001
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org), May 25 2001
More terms from Robert G. Wilson v, Aug 17 2001
a(13) from Sean A. Irvine, Jan 11 2023
STATUS
approved