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 4*k + 1 is never less than those of the form 4*k + 3.
1, 2, 4, 6, 8, 10, 5, 15, 3, 9, 12, 14, 16, 18, 20, 22, 24, 21, 27, 30, 25, 35, 28, 26, 13, 39, 33, 11, 44, 32, 34, 17, 51, 36, 38, 19, 57, 42, 40, 45, 48, 46, 50, 52, 54, 56, 49, 63, 60, 55, 65, 70, 58, 29, 87, 66, 62, 31, 93, 69, 72, 64, 68, 74, 37, 111
Offset: 1
Keywords
Examples
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 4*k + 3, and no primes of form 4*k + 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 4*k + 1 has occurred, one of the form 4*k + 3 is now allowed.
Links
- Scott R. Shannon, Table of n, a(n) for n = 1..10000.
- Scott R. Shannon, Image of the first 100000 terms. The green line is a(n) = n.
- Wikipedia, Chebyshev's bias.
Comments