login
A138423
a(n) = (prime(n)^4 - prime(n)^3)/2.
3
4, 27, 250, 1029, 6655, 13182, 39304, 61731, 133837, 341446, 446865, 911754, 1378420, 1669647, 2387929, 3870802, 5955991, 6809430, 9925179, 12526885, 14004612, 19228521, 23443267, 31018636, 43808304, 51515050, 55729077
OFFSET
1,1
LINKS
FORMULA
a(n) = A138403(n)/2. - R. J. Mathar, Oct 15 2017
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^3)/2], {n, 1, 50}]; a
PROG
(Magma) [(NthPrime((n))^4 - NthPrime((n))^3)/2: n in [1..30] ]; // Vincenzo Librandi, Jun 18 2011
(PARI) forprime(p=2, 1e3, print1((p^4-p^3)/2", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A229619 A051863 A000699 * A239372 A239375 A239370
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 19 2008
STATUS
approved