login
A138455
a(n) = ((n-th prime)^6-(n-th prime)^4)/4.
3
12, 162, 3750, 28812, 439230, 1199562, 6013512, 11728890, 36939012, 148529010, 221645040, 640963062, 1186819620, 1579486062, 2693583912, 5539117662, 10542104070, 12876632130, 22609557762, 32018718060, 37826457012
OFFSET
1,1
COMMENTS
All terms end in 0 or 2. - Bernard Schott, Aug 31 2020
LINKS
MAPLE
f:= proc(n) local p;
p:= ithprime(n); (p^6-p^4)/4
end proc:
map(f, [$1..100]); # Robert Israel, Aug 31 2020
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^6 - p^4)/4], {n, 1, 24}]; a
(#^6-#^4)/4&/@Prime[Range[30]] (* Harvey P. Dale, Jul 21 2023 *)
PROG
(PARI) forprime(p=2, 1e3, print1((p^6-p^4)/4", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A109391 A296194 A307071 * A024221 A093152 A282010
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 22 2008
STATUS
approved