A098996 a(n) = p*(p + 1)*(2*p + 1) where p is the n-th prime.
30, 84, 330, 840, 3036, 4914, 10710, 14820, 25944, 51330, 62496, 105450, 142926, 164604, 214320, 306234, 421260, 465186, 615060, 731016, 794094, 1004880, 1164324, 1433790, 1853670, 2091306, 2217384, 2484540, 2625810, 2924214, 4145280, 4547796, 5199150, 5429340
Offset: 1
Keywords
Examples
a(4) = 7*(7+1)*(2*7+1) = 840.
References
- Miguel Ángel Pérez García-Ortega, José Manuel Sánchez Muñoz and José Miguel Blanco Casado, El Libro de las Ternas Pitagóricas, Preprint 2025.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[(p*(p+1)*(2*p+1)): p in PrimesUpTo(200)]; // Vincenzo Librandi, Feb 04 2011
-
Mathematica
#(#+1)(2#+1)&/@Prime[Range[30]] (* Harvey P. Dale, Jun 23 2020 *)
Formula
a(n) = prime(n)*(prime(n)+1)*(2*prime(n)+1).
Extensions
More terms from Klaus Brockhaus, Nov 09 2004
Comments