A138416 a(n) = (p^3 - p^2)/2, where p = prime(n).
2, 9, 50, 147, 605, 1014, 2312, 3249, 5819, 11774, 14415, 24642, 33620, 38829, 50807, 73034, 100949, 111630, 148137, 176435, 191844, 243399, 282449, 348524, 451632, 510050, 541059, 606797, 641574, 715064, 1016127, 1115465, 1276292, 1333149
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..168
Programs
-
Magma
[(p^3-p^2)/2: p in PrimesUpTo(1000)]; // Vincenzo Librandi, Jun 17 2011
-
Mathematica
a = {}; Do[p = Prime[n]; AppendTo[a, (p^3 - p^2)/2], {n, 1, 50}]; a (#^3-#^2)/2&/@Prime[Range[50]] (* Harvey P. Dale, Nov 01 2020 *)
-
PARI
forprime(p=2,1e3,print1((p^3-p^2)/2", ")) \\ Charles R Greathouse IV, Jun 16 2011
Extensions
Definition corrected by T. D. Noe, Aug 25 2008
Comments