Let P be the polynomial
x + x3 + x5 + x7+ x11+ x13
+ x17 + ...
whose exponents are the primes, and consider Q = P2. The coefficient
of xq in Q will be sum(i= 0 .. q)
(ai aq-i) where the ai
are the coefficients in P, and in particular are zero when i
is not prime and one when it is. So the product is one if and only if
i and q-i are both prime, in which case qis
the sum of two primes. Since we sum over all i from zero toq,
the coefficient of xnwill be R(n).
If we consider only a truncated version of the polynomial P, say going up to x2m+1, we will get correct values of R(n) only up to n=2m+2. So we have to consider extremely long values.
visualisation of the function!