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

A204661
Numbers n such that n!8+1 is prime (for n!8 see A114800).
8
0, 1, 2, 4, 6, 28, 30, 46, 60, 72, 86, 90, 112, 154, 162, 206, 280, 354, 400, 512, 606, 614, 678, 790, 938, 1054, 1092, 1148, 1582, 1788, 2088, 2206, 2598, 2912, 3672, 4642, 6272, 6428, 7084, 7604, 8580, 9464, 12762, 18386, 24910, 30448, 31696, 40288, 41682, 45730
OFFSET
1,3
COMMENTS
n!8 = A114800(n).
No other terms < 50000. - Robert Price, Jul 29 2012
MATHEMATICA
MultiFactorial[n_, k_] := If[n < 1, 1, n*MultiFactorial[n - k, k]];
Select[Range[0, 1000], PrimeQ[MultiFactorial[#, 8] + 1] & ] (* Robert Price, Apr 19 2019 *)
Select[Range[0, 46000], PrimeQ[Times@@Range[#, 1, -8]+1]&] (* Harvey P. Dale, Apr 12 2022 *)
PROG
(PARI) for(n=0, 9999, isprime(prod(i=0, (n-2)\8, n-8*i)+1)& print1(n", "))
KEYWORD
nonn,hard
AUTHOR
M. F. Hasler, Jan 17 2012
EXTENSIONS
a(35)-a(50) from Robert Price, Jul 29 2012
STATUS
approved