login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A349681
a(1)=1, a(2)=2; for n > 2, a(n) is the least unused positive number k such that j != k and either j | k or k | j, but not both, where j = a(n-1) + 1.
1
1, 2, 6, 14, 3, 8, 18, 38, 13, 7, 4, 10, 22, 46, 94, 5, 12, 26, 9, 20, 42, 86, 29, 15, 32, 11, 24, 50, 17, 36, 74, 25, 52, 106, 214, 43, 88, 178, 358, 718, 1438, 2878, 5758, 443, 37, 19, 40, 82, 166, 334, 67, 34, 70, 142, 286, 41, 21, 44, 90, 182, 61, 31, 16, 51
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, 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
Cf. A347113.
Sequence in context: A012470 A266960 A056592 * A282544 A091719 A058054
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Nov 25 2021
STATUS
approved