login
A163121
(prime(n))^3-(nonprime(n))^3 .
0
8, 26, 61, 127, 819, 1468, 3913, 5131, 9423, 21014, 25695, 44821, 60921, 70246, 93175, 135053, 189754, 209405, 281080, 335959, 362017, 460271, 535850, 665665, 869798, 983645, 1037855, 1165724, 1231029, 1368809, 1963199, 2156966, 2474017, 2575027
OFFSET
1,1
COMMENTS
Cube of the n-th prime, A000040(n), minus cube of the n-th nonprime, A141468(n).
FORMULA
a(n) = A030078(n)-A141468(n)^3 = A161671(n)*(A001248(n)+A000040(n)*A141468(n)+A161753(n)).
EXAMPLE
a(1)=2^3-0^3=8. a(2)=3^3-1^2=26. a(3)=5^3-4^3=61. a(4)=7^3-6^3=127.
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Extended by R. J. Mathar, Jul 31 2009
STATUS
approved