OFFSET
1,1
COMMENTS
The first integer which can be represented in two ways is 21, the first in three ways is 37, the first in four ways is 49, the first in five ways is 84. Multiple representations appear to become more prevalent as integers become larger.
EXAMPLE
21 = 1+2^2+2^4 = 2^2+2^3+3^2.
37 = 1+2^2+2^5 = 1+3^2+3^3 = 2^2+2^3+5^2.
49 = 1+2^4+2^5 = 2^2+3^2+6^2 = 2^3+3^2+2^5 = 2^3+2^4+5^2.
MAPLE
N:= 1000: # for terms <= N
PP:= sort(convert({1, seq(seq(a^k, a=2..floor(N^(1/k))), k=2..floor(log[2](N)))}, list)):
nPP:= nops(PP):
filter:= proc(n) local i, j;
for i from 1 to nPP-1 while PP[i] < n/3 do
for j from i+1 to nPP-1 while PP[i] + 2*PP[j] < n do
if member(n-PP[i]-PP[j], PP) then return true fi
od od;
false
end proc:
select(filter, [$1..N]); # Robert Israel, Dec 02 2025
MATHEMATICA
With[{m = 90}, Select[Range[m], Count[IntegerPartitions[#, {3}, Select[Range[m], # == 1 || GCD @@ FactorInteger[#][[;; , 2]] > 1 &]], _?(UnsameQ @@ #1 &)] > 0 &]] (* Amiram Eldar, Nov 29 2025 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Duckett, Nov 14 2025
STATUS
approved
