A382357 Lexicographically earliest sequence of distinct positive integers such that the 2-adic valuations of adjacent terms differ exactly by one.
1, 2, 3, 6, 4, 8, 12, 10, 5, 14, 7, 18, 9, 22, 11, 26, 13, 30, 15, 34, 17, 38, 19, 42, 20, 24, 16, 32, 48, 40, 28, 46, 21, 50, 23, 54, 25, 58, 27, 62, 29, 66, 31, 70, 33, 74, 35, 78, 36, 56, 44, 72, 52, 82, 37, 86, 39, 90, 41, 94, 43, 98, 45, 102, 47, 106, 49
Offset: 1
Examples
The initial terms are: n a(n) A007814(a(n)) -- ---- ------------- 1 1 0 2 2 1 3 3 0 4 6 1 5 4 2 6 8 3 7 12 2 8 10 1 9 5 0 10 14 1 11 7 0 12 18 1 13 9 0 14 22 1 15 11 0
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, Colored scatterplot of the first million terms (blue pixels for even n's, red pixels for odd n's)
- Rémy Sigrist, PARI program
Programs
-
PARI
\\ See Links section.
Comments