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

A137982
Closest pair of primes p <= q such that p + q = n! Sequence gives the lesser member p of the pair.
1
3, 11, 59, 353, 2447, 20147, 181421, 1814347, 19958353, 239500727, 3113510341, 43589145527, 653837183849, 10461394943537, 177843714047843, 3201186852863803, 60822550204415273, 1216451004088319887, 25545471085854719707, 562000363888803839453, 12926008369442488319633
OFFSET
3,1
LINKS
FORMULA
a(n) = A112823(n!/2). - Andrew Howroyd, Feb 02 2020
EXAMPLE
3! = 3 + 3,
4! = 11 + 13,
5! = 59 + 61,
6! = 353 + 367.
p = 3,11,59,353,2447,20147,181421,1814347,19958353,239500727,3113510341,43589145527,653837183849;
q = 3,13,61,367,2593,20173,181459,1814453,19958447,239500873,3113510459,43589145673,653837184151;
q-p = 0,2,2,14,146,26,38,106,94,146,118,146,302.
PROG
(PARI) \\ here b(n) is A112823.
b(n)={my(p=precprime(n)); while(p && !isprime(2*n-p), p = precprime(p-1)); p}
a(n)={b(n!/2)} \\ Andrew Howroyd, Feb 02 2020
CROSSREFS
Cf. A112823.
Sequence in context: A290484 A156560 A028342 * A193364 A074509 A343623
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 29 2008
EXTENSIONS
Terms a(16) and beyond from Andrew Howroyd, Feb 02 2020
STATUS
approved