cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A377292 Terms of A118666 as produced by the program given there (without the final sorting).

Original entry on oeis.org

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

Views

Author

DarĂ­o Clavijo, Dec 27 2024

Keywords

Crossrefs

Programs

  • 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)])

Formula

a(2^k) = A117998(k).