OFFSET
1,1
COMMENTS
All terms are even.
EXAMPLE
24 = 2^4 + 2^3.
30 = 3^3 + 3^1 = 5^2 + 5^1.
PROG
(PARI) limit=L; v=vector(limit); for(n=1, limit, forprime(p=2, n/2, for(k=1, logint(n\2, 2), for(j=k, logint(n, 2), if(n-p^k==p^j, v[n]=1, ))))); for(n=1, limit, if(v[n], print1(n", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Gionata Neri, Mar 31 2017
STATUS
approved