A351497 Lexicographically earliest infinite sequence of distinct positive numbers such that, for n>2, a(n) has a common factor with the second largest previous term but not with the largest previous term.
1, 2, 3, 4, 9, 8, 10, 21, 5, 16, 20, 22, 7, 15, 27, 11, 14, 26, 13, 28, 33, 32, 34, 39, 17, 38, 19, 40, 51, 25, 35, 44, 46, 23, 50, 52, 45, 57, 56, 49, 58, 63, 29, 62, 31, 64, 69, 68, 70, 81, 55, 65, 74, 37, 76, 80, 82, 75, 87, 41, 86, 43, 88, 93, 77, 92, 94, 99, 47, 98, 91, 100, 111, 85, 95, 104
Offset: 1
Examples
a(6) = 8 as the largest and second largest previous terms are a(5) = 9 and a(4) = 4 respectively, and 8 is the smallest unused number that shares a factor with 4 and not with 9. a(9) = 5 as the largest and second largest previous terms are a(8) = 21 and a(7) = 10 respectively, and 5 is the smallest unused number that shares a factor with 10 and not with 21.
Links
- Scott R. Shannon, Image of the first 50000 terms. The green line is y = n.
- Scott R. Shannon, Image of the first 200000 terms. The green line is y = n. The large drop in value occurs at a(176478) = 42.
Comments