OFFSET
1,2
COMMENTS
Variant of A347113 with the additional restriction that j | k or k | j. - Michael De Vlieger, Dec 18 2021.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log-log scatterplot of a(n), for n = 1..2^14, indicating records in red and local minima in blue.
MATHEMATICA
j = 3; c[_] = 0; c[2] = 1; {1, 2}~Join~Reap[Do[Set[k, 3]; While[Nand[c[k] == 0, j != k, Xor[Mod[j, k] == 0, Mod[k, j] == 0]], k++]; Sow[k]; Set[c[k], i]; j = k + 1, {i, 3, 64}]][[-1, -1]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Nov 25 2021
STATUS
approved