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.

A333513 Square array T(n,k), n >= 2, k >= 2, read by antidiagonals, where T(n,k) is the number of self-avoiding closed paths on an n X k grid which pass through four corners ((0,0), (0,k-1), (n-1,k-1), (n-1,0)).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 7, 11, 7, 1, 1, 17, 49, 49, 17, 1, 1, 41, 229, 373, 229, 41, 1, 1, 99, 1081, 3105, 3105, 1081, 99, 1, 1, 239, 5123, 26515, 44930, 26515, 5123, 239, 1, 1, 577, 24323, 227441, 674292, 674292, 227441, 24323, 577, 1
Offset: 2

Views

Author

Seiichi Manyama, Mar 25 2020

Keywords

Examples

			Square array T(n,k) begins:
  1,  1,    1,     1,      1,        1, ...
  1,  1,    3,     7,     17,       41, ...
  1,  3,   11,    49,    229,     1081, ...
  1,  7,   49,   373,   3105,    26515, ...
  1, 17,  229,  3105,  44930,   674292, ...
  1, 41, 1081, 26515, 674292, 17720400, ...
		

Crossrefs

Column k=2-7 give: A000012, A001333(n-2), A333514, A333515, A358712, A358713.
Main diagonal gives A333466.
Cf. A333758.

Programs

  • Python
    # Using graphillion
    from graphillion import GraphSet
    import graphillion.tutorial as tl
    def A333513(n, k):
        universe = tl.grid(n - 1, k - 1)
        GraphSet.set_universe(universe)
        cycles = GraphSet.cycles()
        for i in [1, k, k * (n - 1) + 1, k * n]:
            cycles = cycles.including(i)
        return cycles.len()
    print([A333513(j + 2, i - j + 2) for i in range(11 - 1) for j in range(i + 1)])

Formula

T(n,k) = T(k,n).

A358696 Number of self-avoiding closed paths in the 5 X n grid graph which pass through all vertices on four (left, right, upper, lower) sides of the graph.

Original entry on oeis.org

1, 5, 36, 191, 1123, 6410, 37165, 214515, 1240200, 7165033, 41403125, 239227616, 1382302375, 7987125379, 46150853892, 266666446637, 1540838849619, 8903196975232, 51444004997119, 297251155267189, 1717561649837610, 9924328164015589, 57344252900906673, 331343672343272500, 1914553310297505893, 11062575457823993391, 63921216037276901284
Offset: 2

Views

Author

Seiichi Manyama, Nov 27 2022

Keywords

Crossrefs

Row 5 of A333758.
Cf. A333515.

Formula

Conjecture: a(n) = 6 *a(n-1) + a(n-2) - 20 * a(n-3) + 37 * a(n-4) + 16 * a(n-5) - 12 * a(n-6) - 7 * a(n-7) + 5 * a(n-8) - a(n-9) for n > 10.
Showing 1-2 of 2 results.