A258009 If n <= 16, a(n) = n; for n > 16: a(16n + 6) = 16*n + 9, and for other cases with n > 16: a(2n) = 2*a(n), a(2n+1) = 2*a(n) + 1.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 25, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 41, 39, 40, 41, 42, 43, 50, 51, 46, 47, 48, 49, 50, 51, 52, 53, 57, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 73, 71, 72, 73, 74, 75, 82, 83, 78, 79, 80, 81, 82, 83, 84, 85, 89, 87, 100
Offset: 0
Examples
For n = 224694 ("110110110110110110" in binary) we rewrite the rightmost "0110" to "1001" resulting "110110110110111001" in binary, which is 224697 in decimal, thus a(224694) = 224697. For n = 486838 ("1110110110110110110" in binary) we rewrite the rightmost "0110" to "1001" resulting "1110110110110111001" in binary, which is 486841 in decimal, thus a(486838) = 486841.
Links
- Antti Karttunen, Table of n, a(n) for n = 0..8191
- Guo, Hansen, Zheng, Boundary uniqueness of fusenes, Discrete Applied Mathematics 118 (2002), pp. 209-222.
Formula
If n <= 16, a(n) = n; for n > 16: a(16n + 6) = 16*n + 9, and for other cases with n > 16: a(2n) = 2*a(n), a(2n+1) = 2*a(n) + 1.
Comments