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

A084922
a(n) = (prime(n)-1)*(prime(n)+1)/6.
6
4, 8, 20, 28, 48, 60, 88, 140, 160, 228, 280, 308, 368, 468, 580, 620, 748, 840, 888, 1040, 1148, 1320, 1568, 1700, 1768, 1908, 1980, 2128, 2688, 2860, 3128, 3220, 3700, 3800, 4108, 4428, 4648, 4988, 5340, 5460, 6080, 6208, 6468, 6600, 7420
OFFSET
3,1
LINKS
FORMULA
a(n) = A084920(n)/6.
a(n) = A084921(n)/3.
MATHEMATICA
Select[Range[0, 7000], PrimeQ[Sqrt[6 # + 1]]&] (* Vincenzo Librandi, Apr 11 2013 *)
(Prime[Range[3, 60]]^2 -1)/6 (* G. C. Greubel, May 02 2024 *)
PROG
(Magma) [(p^2-1)/6: p in PrimesInInterval(4, 250)]; // Vincenzo Librandi, Apr 11 2013
(PARI) a(n) = (prime(n)^2-1)/6; \\ Michel Marcus, Mar 22 2016
(SageMath) [(n^2-1)//6 for n in prime_range(4, 301)] # G. C. Greubel, May 02 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jun 11 2003
STATUS
approved