login
A377292
Terms of A118666 as produced by the program given there (without the final sorting).
0
0, 1, 6, 7, 20, 18, 21, 19, 120, 108, 126, 106, 121, 109, 127, 107, 272, 360, 260, 380, 278, 366, 258, 378, 273, 361, 261, 381, 279, 367, 259, 379, 1632, 1904, 1560, 1800, 1652, 1892, 1548, 1820, 1638, 1910, 1566, 1806, 1650, 1890, 1546, 1818, 1633, 1905, 1561, 1801
OFFSET
0,3
LINKS
Joerg Arndt, Matters Computational (The Fxtbook), section 1.19.3 "Fixed points of the blue code", p.52-54, with a(n) = blue_fixed_point(n).
FORMULA
a(2^k) = A117998(k).
PROG
(C++) // See Fxtbook link, "blue_fixed_point()".
(Python)
A048726 = lambda n: (n << 2) ^ (n << 1)
def a(n):
if n == 0: return 0
f, s = 1, n
while s > 1:
f = A048726(f) | (s & 1)
s >>= 1
return f
print([a(n) for n in range(0, 52)])
CROSSREFS
Sequence in context: A285840 A285819 A287760 * A305675 A210605 A175262
KEYWORD
nonn
AUTHOR
Darío Clavijo, Dec 27 2024
STATUS
approved