A351496 Lexicographically earliest infinite sequence of distinct positive numbers such that, for n>2, a(n) has a common factor with the largest previous term but not with the second largest previous term.
1, 2, 6, 3, 4, 15, 5, 35, 7, 14, 28, 25, 45, 9, 12, 18, 24, 27, 33, 36, 55, 11, 22, 44, 77, 21, 42, 49, 56, 99, 30, 39, 48, 51, 54, 57, 60, 69, 72, 75, 78, 187, 17, 34, 68, 85, 119, 66, 88, 110, 121, 102, 136, 143, 153, 154, 221, 13, 26, 52, 65, 91, 104, 117, 130, 156, 169, 182, 195, 238, 8, 10
Offset: 1
Examples
a(4) = 3 as the largest and second largest previous terms are a(3) = 6 and a(2) = 2 respectively, and 3 is the smallest unused number that shares a factor with 6, not with 2, and does not contain the same prime factors as 6. a(6) = 15 as the largest and second largest previous terms are a(3) = 6 and a(5) = 4 respectively, and 15 is the smallest unused number that shares a factor with 6, not with 4, and has a prime factor not in common with 6. Note that 9 satisfies the first two conditions but not the third. a(7) = 5 as the largest and second largest previous terms are a(6) = 15 and a(3) = 6 respectively, and 5 is the smallest unused number that shares a factor with 15 but not with 6.
Links
- Scott R. Shannon, Image of the first 150000 terms. The green line is y = n.
Comments