%I #11 Aug 01 2022 18:34:00
%S 31,363,7810,58821,885775,2413398,12068776,23522931,74017933,
%T 297411646,443751825,1282863186,2375052100,3160681503,5389607641,
%U 11082180538,21090266791,25760187150,45229191051,64050141925,75667113108
%N a(n) = ((n-th prime)^6-(n-th prime))/2.
%H Harvey P. Dale, <a href="/A138440/b138440.txt">Table of n, a(n) for n = 1..1000</a>
%F a(n) = A138408(n)/2. - _R. J. Mathar_, Oct 15 2017
%t a = {}; Do[p = Prime[n]; AppendTo[a, (p^6 - p)/2], {n, 1, 50}]; a
%t (#^6-#)/2&/@Prime[Range[30]] (* _Harvey P. Dale_, Aug 01 2022 *)
%o (PARI) forprime(p=2,1e3,print1((p^6-p)/2", ")) \\ _Charles R Greathouse IV_, Jul 15 2011
%K nonn,easy
%O 1,1
%A _Artur Jasinski_, Mar 19 2008
|