OFFSET
1,2
LINKS
Klaus Brockhaus, Table of n, a(n) for n = 1..4948
Eric Weisstein's World of Mathematics, B2-Sequence
EXAMPLE
49 is in the sequence since the pairwise sums of distinct elements of {1, 4, 9, 16, 25, 36, 49} are all distinct: 5, 10, 13, 17, 20, 25, 26, 29, 34, 37, 40, 41, 45, 50, 52, 53, 58, 61, 65, 74, 85.
64 is not in the sequence since 1 + 64 = 16 + 49.
PROG
(Python)
from itertools import count, islice
def A133743_gen(): # generator of terms
aset2, alist = set(), []
for k in map(lambda x:x**2, count(1)):
bset2 = set()
for a in alist:
if (b:=a+k) in aset2:
break
bset2.add(b)
else:
yield k
alist.append(k)
aset2.update(bset2)
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Sep 24 2007
STATUS
approved