login
A151911
Abs(square of n-th prime minus cube of n-1).
0
4, 8, 17, 22, 57, 44, 73, 18, 17, 112, 39, 38, 47, 348, 535, 566, 615, 1192, 1343, 1818, 2671, 3020, 3759, 4246, 4415, 5424, 6967, 8234, 10071, 11620, 10871, 12630, 13999, 16616, 17103, 20074, 22007, 24084, 26983, 29390, 31959, 36160, 37607, 42258, 46375, 51524, 52815, 54094, 59063, 65208
OFFSET
1,1
FORMULA
a(n)=|A001248(n)-A000578(n-1)|.
EXAMPLE
a(1)=4(=2^2-0^3); a(2)=8(=3^2-1^3); a(3)=17(=5^2-2^3).
MATHEMATICA
Table[Abs[Prime[n]^2-(n-1)^3], {n, 60}] (* Harvey P. Dale, Jun 14 2011 *)
CROSSREFS
Sequence in context: A260306 A031462 A045066 * A037242 A158139 A026393
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition, values and formula corrected by R. J. Mathar, Aug 05 2009
STATUS
approved