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

A106630
Numbers k such that (prime(k)^2 - 1)/6 - prime(k) is prime.
1
7, 8, 12, 13, 17, 20, 24, 25, 28, 29, 32, 39, 42, 45, 52, 53, 58, 59, 63, 64, 67, 72, 75, 79, 83, 87, 88, 93, 100, 102, 114, 115, 125, 126, 127, 131, 139, 140, 144, 154, 159, 160, 173, 180, 190, 195, 219, 223, 232, 234, 240, 248, 253, 265, 278, 279, 284, 296, 299
OFFSET
1,1
LINKS
EXAMPLE
(17^2 -1)/6 - 17 = 48 - 17 = 31 is prime, 17=prime(7), so 7 is a term.
MATHEMATICA
Select[Range[350], PrimeQ[(Prime[#]^2 -6*Prime[#] -1)/6] &] (* G. C. Greubel, Sep 08 2021 *)
PROG
(PARI) is(n, p=prime(n))=isprime((p^2-1)/6-p) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Cf. A084922.
Sequence in context: A105740 A377886 A050796 * A050798 A260628 A280999
KEYWORD
nonn
AUTHOR
Pierre CAMI, May 11 2005
EXTENSIONS
a(12) corrected by R. J. Mathar, Nov 13 2009
STATUS
approved