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.

Showing 1-2 of 2 results.

A333246 Number of self-avoiding closed paths on an n X n grid which pass through NW corner.

Original entry on oeis.org

1, 7, 97, 4111, 532269, 212372937, 263708907211, 1013068026356375, 11955420069208095719, 432101605951906251627393, 47778407166747833830058004149, 16149888968763663448192636077980753, 16675786862526496319891707194153887550751, 52568166380872328447478940416604864445574575709
Offset: 2

Views

Author

Seiichi Manyama, Mar 23 2020

Keywords

Examples

			a(2) = 1;
   +--*
   |  |
   *--*
a(3) = 7;
   +--*      +--*--*   +--*--*   +--*
   |  |      |     |   |     |   |  |
   *--*      *--*--*   *     *   *  *
                       |     |   |  |
                       *--*--*   *--*
   +--*--*   +--*--*   +--*
   |     |   |     |   |  |
   *  *--*   *--*  *   *  *--*
   |  |         |  |   |     |
   *--*         *--*   *--*--*
		

Crossrefs

Programs

  • Python
    # Using graphillion
    from graphillion import GraphSet
    import graphillion.tutorial as tl
    def A333246(n):
        universe = tl.grid(n - 1, n - 1)
        GraphSet.set_universe(universe)
        cycles = GraphSet.cycles().including(1)
        return cycles.len()
    print([A333246(n) for n in range(2, 10)])

Formula

a(n) = A333439(n) - 1 for n > 1.

Extensions

a(11), a(13) from Seiichi Manyama, Apr 07 2020
a(10), a(12), a(14)-a(15) from Andrew Howroyd, Jan 30 2022

A333438 Number of self-avoiding walks of any length from NW corner to its adjacent points on an n X n grid or lattice.

Original entry on oeis.org

4, 16, 196, 8224, 1064540, 424745876, 527417814424, 2026136052712752, 23910840138416191440, 864203211903812503254788, 95556814333495667660116008300, 32299777937527326896385272155961508, 33351573725052992639783414388307775101504, 105136332761744656894957880833209728891149151420
Offset: 2

Views

Author

Seiichi Manyama, Mar 21 2020

Keywords

Examples

			a(2) = 4;
   S--E   S  E
          |  |
          *--*
   S      S--*
   |         |
   E      E--*
a(3) = 16;
   S--E      S  E      S  E--*   S  E--*
             |  |      |     |   |     |
             *--*      *--*--*   *     *
                                 |     |
                                 *--*--*
   S  E      S  E--*   S  E--*   S  E
   |  |      |     |   |     |   |  |
   *  *      *  *--*   *--*  *   *  *--*
   |  |      |  |         |  |   |     |
   *--*      *--*         *--*   *--*--*
   S         S--*      S--*      S--*--*
   |            |         |            |
   E         E--*      E  *      E     *
                       |  |      |     |
                       *--*      *--*--*
   S--*--*   S--*--*   S--*      S--*--*
         |         |      |            |
   E--*--*   E  *--*   E  *--*   E--*  *
             |  |      |     |      |  |
             *--*      *--*--*      *--*
		

Crossrefs

Programs

  • Python
    # Using graphillion
    from graphillion import GraphSet
    import graphillion.tutorial as tl
    def A333438(n):
        universe = tl.grid(n - 1, n - 1)
        GraphSet.set_universe(universe)
        start, goal = 1, 2
        paths = GraphSet.paths(start, goal)
        return paths.len() * 2
    print([A333438(n) for n in range(2, 10)])

Extensions

a(11) and a(13) from Seiichi Manyama
More terms from Ed Wynn, Jun 29 2023
Showing 1-2 of 2 results.