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.

A293709 Number of Hamiltonian walks on a Sierpinski fractal.

Original entry on oeis.org

1, 2, 10, 92, 1852, 78032, 6846876, 1255156712, 482338029046, 387869817764474, 652822489612455344, 2300645402905295350788, 16976857303773016457918252
Offset: 2

Views

Author

Michel Marcus, Oct 25 2017

Keywords

Crossrefs

Cf. A112676.

Programs

  • Python
    # Using graphillion
    from graphillion import GraphSet
    def make_n_triangular_grid_graph(n):
        s = 1
        grids = []
        for i in range(n + 1, 1, -1):
            for j in range(i - 1):
                a, b, c = s + j, s + j + 1, s + i + j
                grids.extend([(a, b), (a, c), (b, c)])
            s += i
        return grids
    def A293709(n):
        universe = make_n_triangular_grid_graph(n - 1)
        GraphSet.set_universe(universe)
        start, goal = 1, n * (n + 1) // 2
        paths = GraphSet.paths(start, goal, is_hamilton=True)
        return paths.len()
    print([A293709(n) for n in range(2, 10)])  # Seiichi Manyama, Dec 05 2020

Extensions

a(10)-a(14) from Seiichi Manyama, Dec 05 2020