OFFSET
1,1
LINKS
Jon E. Schoenfield, Magma program (computes first 36 terms).
MATHEMATICA
a = {3}; k = 2; Monitor[Do[While[Or[! Apply[CoprimeQ, Join[a, {k}]], AnyTrue[Map[Log2 @* Total@ Append[#, k] &, Subsets[a]], IntegerQ]], k++]; AppendTo[a, k]; k++, {i, 16}], {i, k}]; a (* Michael De Vlieger, Jun 14 2023 *)
PROG
(Python)
from math import gcd
from itertools import count, islice
def agen(): # generator of terms
a, ss, pows2, m = [], set(), {1, 2}, 2
for k in count(1):
if k in pows2: continue
elif k > m: m <<= 1; pows2.add(m)
if any(p2-k in ss for p2 in pows2): continue
if any(gcd(ai, k) != 1 for ai in a): continue
a.append(k); yield k
ss |= {k} | {k+si for si in ss if k+si not in ss}
while m < max(ss): m <<= 1; pows2.add(m)
print(list(islice(agen(), 30))) # Michael S. Branicky, Jun 09 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Julian Zbigniew Kuryllowicz-Kazmierczak, May 23 2023
EXTENSIONS
a(23)-a(33) from Michael S. Branicky, Jun 07 2023
a(34)-a(39) from Jon E. Schoenfield, Jun 09 2023
STATUS
approved