A045701 Number of ways n can be written as a sum of a square of a prime and a cube of a prime.
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 1
Examples
a(12) = 1 because 12 = 2^2 + 2^3; a(17) = 1 because 17 = 2^3 + 3^2. a(129) = 2 because 129 = 2^3 + 11^2 = 2^2 + 5^3.
Links
- Ray Chandler, Table of n, a(n) for n = 1..10000
Formula
G.f.: (Sum_{k>=1} x^(prime(k)^2))*(Sum_{k>=1} x^(prime(k)^3)). - Ilya Gutkovskiy, Jan 06 2017
Extensions
More terms from Erich Friedman