A374645 a(1) = 1, a(2) = 6, a(3) = 2; for n > 3, a(n) is the smallest unused positive number that is coprime to a(n-1) but has a common factor with any other previous term that has a common factor with a(n-1).
1, 6, 2, 3, 4, 9, 8, 15, 14, 27, 5, 12, 7, 10, 21, 16, 25, 18, 35, 22, 39, 20, 11, 24, 13, 30, 49, 26, 33, 28, 45, 32, 51, 38, 55, 34, 19, 36, 17, 40, 57, 44, 63, 46, 65, 42, 23, 48, 77, 50, 69, 52, 75, 56, 81, 58, 85, 54, 29, 60, 91, 62, 87, 64, 31, 66, 95, 68, 93, 70, 99, 74, 105, 76, 37
Offset: 1
Keywords
Examples
a(11) = 5 as 5 is coprime to a(10) = 27 while sharing a factor with a(8) = 15, which itself shares a factor with a(10) = 27. This is also the first term that uses a term other than a(2) = 6 as the previous term with which is shares a factor with.
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..10000
Comments