OFFSET
1,1
COMMENTS
LINKS
David Consiglio, Jr., Table of n, a(n) for n = 1..20000
EXAMPLE
35 is a term of this sequence because 2^3 + 3^3 = 8 + 27 = 35 and this is the one and only way to express 35 as the sum of two cubes.
MATHEMATICA
Select[Range@2000, Length[s=PowersRepresentations[#, 2, 3]]==1&&And@@(#>0&@@@s)&] (* Giorgos Kalogeropoulos, Apr 24 2021 *)
PROG
(Python)
from itertools import combinations_with_replacement as cwr
from collections import defaultdict
from bisect import bisect_left as bisect
keep = defaultdict(lambda: 0)
power_terms = [x**3 for x in range(1, 1000)]
for pos in cwr(power_terms, 2):
tot = sum(pos)
keep[tot] += 1
rets = sorted([k for k, v in keep.items() if v == 1])
for x in range(len(rets)):
print(rets[x])
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
David Consiglio, Jr., Apr 22 2021
STATUS
approved