A382091 · a(1) = 1, a(2) = 2; for n > 2, a(n) is the smallest unused positive number such that a(n) shares a factor with a(n-1) while the total number of prime terms of the form 4k + 1 is never less than those of the form 4k + 3.
In the first 100000 terms the fixed points are 1, 2, 77, 121; it is likely no more exist. The sequence is conjectured to be a permutation of the positive integers.
Ver un ejemplo concreto
a(5) = 8 as a(4) = 6 and 8 is unused and shares a factor with 6. Note that 3 cannot be chosen as 3 is of the form 4k + 3, and no primes of form 4k + 1 have yet occurred. This is the first term to differ from A064413.
a(7) = 5 as a(6) = 10 and 5 is unused and shares a factor with 10. This is the first prime of the form 4*k + 1 to occur.
a(9) = 3 as a(8) = 15 and 3 is unused and shares a factor with 15. As a prime of the form 4k + 1 has occurred, one of the form 4k + 3 is now allowed.