OFFSET
1,3
COMMENTS
Note that a(21323543) = 0, i.e., the odd number 2*21323543 + 1 = 42647087 cannot be written as the sum of a prime, a power of 3 and a power of 5.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
Zhi-Wei Sun, Mixed sums of primes and other terms, in: Additive Number Theory (edited by D. Chudnovsky and G. Chudnovsky), pp. 341-353, Springer, New York, 2010.
EXAMPLE
a(2) = 1 since 2*2+1 = 3 + 3^0 + 5^0 with 3 prime.
a(3) = 2 since 2*3+1 = 3 + 3^1 + 5^0 = 5 + 3^0 + 5^0 with 3 and 5 prime.
MATHEMATICA
tab={}; Do[r=0; Do[If[PrimeQ[2n+1-5^x-3^y], r=r+1], {x, 0, Log[5, 2n]}, {y, 0, Log[3, 2n+1-5^x]}]; tab=Append[tab, r], {n, 1, 70}]; Print[tab]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Apr 28 2018
STATUS
approved