OFFSET
1,1
COMMENTS
LINKS
Klaus Brockhaus, Table of n, a(n) for n = 1..98
EXAMPLE
PROG
(Python)
from itertools import count, islice
def A133604_gen(): # generator of terms
aset2, alist = set(), []
for k in count(1):
bset2 = {r:=k<<1}
if r not in aset2:
for d in alist:
if (m:=d+k) in aset2:
break
bset2.add(m)
else:
if k in aset2:
yield k
alist.append(k)
aset2.update(bset2)
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Sep 18 2007
STATUS
approved