OFFSET
1,2
COMMENTS
A Mian-Chowla sequence consisting only of cubes.
EXAMPLE
During recursive construction of this set, for n=1-50, the cubes of 12,18,24,32,34,36,48 are left out to keep all sums of distinct cubes distinct from each other.
PROG
(Python)
from itertools import count, islice
def A062292_gen(): # generator of terms
aset1, aset2, alist = set(), set(), []
for k in (n**3 for n in count(1)):
bset2 = {k<<1}
if (k<<1) not in aset2:
for d in aset1:
if (m:=d+k) in aset2:
break
bset2.add(m)
else:
yield k
alist.append(k)
aset1.add(k)
aset2.update(bset2)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 02 2001
STATUS
approved