OFFSET
1,1
EXAMPLE
28 is in the sequence since 1^3 + 3^3 = 1 + 27 = 28, with 1 and 27 both odd.
MATHEMATICA
Table[If[Sum[Mod[i, 2] Mod[n - i, 2] (Floor[i^(1/3)] - Floor[(i - 1)^(1/3)]) (Floor[(n - i)^(1/3)] - Floor[(n - i - 1)^(1/3)]), {i, Floor[n/2]}] > 0, n, {}], {n, 1200}] // Flatten
Union[Total/@Tuples[Range[1, 25, 2]^3, 2]] (* Harvey P. Dale, Nov 17 2024 *)
PROG
(Python)
def aupto(lim):
ocs = [k**3 for k in range(1, int(lim**(1/3)+2), 2)]
return sorted(set(c1+c2 for c1 in ocs for c2 in ocs if c1+c2 <= lim))
print(aupto(7202)) # Michael S. Branicky, Feb 28 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Dec 25 2020
STATUS
approved