OFFSET
1,1
COMMENTS
The first integer using a power with a composite base is 40.
The first integer where all powers have a composite base is 360.
The first integer represented in three ways is 153.
The first integer to include a non-distinct representation is 72.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..10000
EXAMPLE
40 = 2^2 + 6^2 = 2^3 + 2^5.
360 = 6^2 + 18^2 = 6^3 + 12^2.
153 = 2^5 + 11^2 = 2^7 + 5^2 = 3^2 + 12^2.
468 = 3^3 + 21^2 = 5^3 + 7^3 = 12^2 + 18^2 = 15^2 + 3^5.
1625 = 2^8 + 37^2 = 5^2 + 40^2 = 5^4 + 10^3 = 20^2 + 35^2 = 28^2 + 29^2.
72 = 2^3 + 2^6 = 6^2 + 6^2.
PROG
(PARI)
b(n)=sum(k=2, sqrtint(n\2), if(!ispower(k), sum(e=2, logint(n\2, k), ispower(n-k^e)!=0 )))
select(k->b(k)>=2, [1..500]) \\ Andrew Howroyd, Oct 14 2025
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Duckett, Oct 14 2025
STATUS
approved
