OFFSET
1,1
COMMENTS
No odd integer can be represented in more than one way.
The smallest term not to use the prime 2 is a(277) = 18138 = A390179(1).
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..10000
EXAMPLE
292 = 3^5 + 7^2
4938 = 17^3 + 5^2
18138 = 7^5 + 11^3
PROG
(PARI) is_a390066(t) = {forprime(p1=2, sqrtint(t), my(lim2=logint(t, p1)); forprime(p2=2, lim2, if(p2==p1, next); my(p=p1^p2, r=t-p); if(r<8, next); my(f=factor(r)); if(omega(f)==1 && f[1, 1]!=p1 && f[1, 1]!=p2, my(p4=bigomega(f)); if(isprime(p4) && p4!=p1 && p4!=p2 && p4!=f[1, 1], return(1))))); 0} \\ Hugo Pfoertner, Oct 28 2025
(Python)
from sympy import nextprime, integer_nthroot
aupto = 10000000
A390066, parts, p1 = set(), [], 2
while p1 < integer_nthroot(aupto, 2)[0]:
p2 = 2
while (pot:=p1**p2) < aupto:
if p1 != p2: parts.append([pot, p1, p2])
p2 = nextprime(p2)
p1 = nextprime(p1)
parts = sorted(parts)
for pf in parts:
for ps in parts:
if (p:=pf[0] + ps[0]) > aupto: break
else:
if pf[1] not in ps[1:] and pf[2] not in ps[1:]: A390066.add(p)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Duckett, Oct 23 2025
STATUS
approved
