OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
If p=7, 7*(7+1)*(2*7+1) = 840.
MATHEMATICA
#(#+1)(2#+1)&/@Prime[Range[30]] (* Harvey P. Dale, Jun 23 2020 *)
PROG
(Magma) [(p*(p+1)*(2*p+1)): p in PrimesUpTo(200)]; // Vincenzo Librandi, Feb 04 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Parthasarathy Nambi, Nov 05 2004
EXTENSIONS
More terms from Klaus Brockhaus, Nov 09 2004
STATUS
approved