login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A139058 Numbers n such that (5+n!)/5 is prime. 26
7, 9, 11, 14, 19, 23, 45, 121, 131, 194, 735, 751, 1316, 1372, 2084, 2562, 5678, 5758, 12533, 24222 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

For primes of the form (5+n!)/5 see A139059.

a(21) > 25000. - Robert Price, Nov 20 2016

LINKS

Table of n, a(n) for n=1..20.

MATHEMATICA

a = {}; Do[If[PrimeQ[(n! + 5)/5], AppendTo[a, n]], {n, 1, 751}]; a

PROG

(MAGMA) [ n: n in [5..734] | IsPrime((Factorial(n)+5) div 5) ];

(PARI) A139058(n) = local(k=(n!+5)\5); if(isprime(k), k, 0);

for(n=5, 800, if(A139058(n)>0, print1(n, ", ")))

CROSSREFS

Cf. A139059.

Cf. n!/m-1 is a prime: A002982, A082671, A139056, A139199-A139205; n!/m+1 is a prime: A002981, A082672, A089085, A139061, A139058, A139063, A139065, A151913, A137390, A139071 (1<=m<=10).

Sequence in context: A120165 A267970 A024828 * A242103 A328454 A254937

Adjacent sequences:  A139055 A139056 A139057 * A139059 A139060 A139061

KEYWORD

nonn

AUTHOR

Artur Jasinski, Apr 07 2008

EXTENSIONS

More terms from Serge Batalov, Feb 18 2015

a(19)-a(20) from Robert Price, Nov 20 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 4 21:11 EST 2020. Contains 338938 sequences. (Running on oeis4.)