login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A333759 Number of self-avoiding closed paths in the n X n grid graph which pass through all vertices on four (left, right, upper, lower) sides of the graph. 2
1, 1, 11, 191, 11346, 2002405, 1112939654, 1878223479450 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,3
COMMENTS
a(11) = 152567999801505122456.
LINKS
EXAMPLE
a(2) = 1;
+--+
| |
+--+
a(3) = 1;
+--+--+
| |
+ +
| |
+--+--+
a(4) = 11;
+--+--+--+ +--+--+--+ +--+--+--+
| | | | | |
+--*--* + +--* *--+ +--* +
| | | | | |
+--*--* + +--* *--+ +--* +
| | | | | |
+--+--+--+ +--+--+--+ +--+--+--+
+--+--+--+ +--+--+--+ +--+--+--+
| | | | | |
+ *--*--+ + *--* + + *--+
| | | | | | | |
+ *--*--+ + * * + + *--+
| | | | | | | |
+--+--+--+ +--+ +--+ +--+--+--+
+--+--+--+ +--+--+--+ +--+ +--+
| | | | | | | |
+ + + + + *--* +
| | | | | |
+ *--* + + + + *--* +
| | | | | | | | | |
+--+ +--+ +--+--+--+ +--+ +--+
+--+ +--+ +--+ +--+
| | | | | | | |
+ *--* + + * * +
| | | | | |
+ + + *--* +
| | | |
+--+--+--+ +--+--+--+
PROG
(Python)
# Using graphillion
from graphillion import GraphSet
import graphillion.tutorial as tl
def A333759(n):
universe = tl.grid(n - 1, n - 1)
GraphSet.set_universe(universe)
cycles = GraphSet.cycles()
points = [i for i in range(1, n * n + 1) if i % n < 2 or ((i - 1) // n + 1) % n < 2]
for i in points:
cycles = cycles.including(i)
return cycles.len()
print([A333759(n) for n in range(2, 10)])
CROSSREFS
Main diagonal of A333758.
Cf. A333466.
Sequence in context: A002195 A280070 A171553 * A068649 A158509 A072290
KEYWORD
nonn,more
AUTHOR
Seiichi Manyama, Apr 04 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 16:22 EDT 2024. Contains 371780 sequences. (Running on oeis4.)