OFFSET
1,1
COMMENTS
Supersequence of A302753 (prime-additive numbers). Terms that are not prime-additive numbers: 210, 330, 390, 420, 546, 570, 630, 660, 714, 780, 858, 870, ...
Fang & Chen defined shortest weakly prime-additive numbers to be those that can be represented as sum of 3 powers. The weakly prime-additive numbers that are not shortest are 2730, 3570, 5460, 5610, 6090, 6930, 7140, 7854, 8610, 8970, 9030, 9240, 9570, ...
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
Paul Erdős and Norbert Hegyvári, On prime-additive numbers, Studia Scientiarum Mathematicarum Hungarica, Vol. 27, No. 1-2 (1992), pp. 207-212. Review.
Jin-Hui Fang and Yong-Gao Chen, On the shortest weakly prime-additive numbers, Journal of Number Theory, Vol. 182 (2018), pp. 258-270.
EXAMPLE
210 = 2 * 3 * 5 * 7 = 2^2 + 3^4 + 5^3, thus 210 is in the sequence. It is not prime-additive number, since there is no power of 7 in the sum.
MATHEMATICA
primes[n_] := First[Transpose[FactorInteger[n]]]; maxPower[p_, n_] := Module[ {k=0, nn=n}, While[nn>1, nn/=p; k++]; k-1 ]; a[n_] := Module[ {ps=primes[n]}, np=Length[ps]; pws=Table[maxPower[ps[[k]], n], {k, 1, np}]; npws = Length[pws]; Coefficient [Product[1+Sum[x^(ps[[k]]^j), {j, 1, pws[[k]]} ], {k, 1, np}], x, n]]; s={}; Do[b=a[n]; If[b>0, AppendTo[s, n]], {n, 1, 2100}]; s
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Apr 15 2018
STATUS
approved