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-9 of 9 results.

A000937 Length of longest simple cycle without chords in the n-dimensional hypercube graph. Also called n-coil or closed n-snake-in-the-box problem.

Original entry on oeis.org

0, 4, 6, 8, 14, 26, 48, 96
Offset: 1

Views

Author

Keywords

Comments

This sequence actually gives the length of a longest closed chordless path in the n-dimensional hypercube. To distinguish closed and open paths, newer terminology uses "n-coil" for closed and "n-snake" for open paths. See also A099155.
a(7) was found by exhaustive search by Kochut.
Longest closed achordal path in n-dimensional hypercube.
After 48, lower bounds on the next terms are 96, 180, 344, 630, 1236. - Darren Casella (artdeco42(AT)yahoo.com), Mar 04 2005

Examples

			a(4)=8: Path of a longest 4-coil: 0000 1000 1100 1110 0110 0111 0011 0001 0000. See Figure 1 in Kochut.
Solutions of lengths 4,6,8,14 and 26 in dimensions 2..6 from Arlin Anderson (starship1(AT)gmail.com):
0 1 3 2; 0 1 3 7 6 4; 1 3 7 6 14 10 8; 0 1 3 7 6 14 10 26 27 25 29 21 20 16;
0 1 3 7 6 14 10 26 27 25 29 21 53 37 36 44 40 41 43 47 63 62 54 50 48 16;
		

References

  • D. Casella and W. D. Potter, "New Lower Bounds for the Snake-in-the-box Problem: Using Evolutionary Techniques to Hunt for Snakes". To appear in 18th International FLAIRS Conference, 2005.
  • D. Casella and W. D. Potter, "New Lower Bounds for the Snake-in-the-box Problem: Using Evolutionary Techniques to Hunt for Coils". Submitted to IEEE Conference on Evolutionary Computing, 2005.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • Gilles Zémor, "An upper bound on the size of the snake-in-the-box", Combinatorica 17.2 (1997): 287-298.

Crossrefs

Cf. A099155, length of maximum n-snake.

Extensions

Edited and extended by Hugo Pfoertner, Oct 13 2004
a(8) from Paterson and Tuliani (1998), according to Östergård and Ville (2014). - N. J. A. Sloane, Apr 06 2014
a(1) changed by Hugo Pfoertner, Aug 01 2015

A331968 Maximum number of unit squares of a snake-like polyomino in an n X n square box.

Original entry on oeis.org

1, 3, 7, 11, 17, 24, 33, 42, 53, 64, 77, 92, 107, 123, 142, 162, 182
Offset: 1

Views

Author

Alain Goupil, Feb 02 2020

Keywords

Comments

These are similar to the snake-in-the-box problem for the hypercube Q_n (See A099155).
The number of solutions is given by A331986(n).
Equivalently, a(n) is the maximum number of vertices in a path without chords in the n X n grid graph. A path without chords is an induced subgraph that is a path.
These numbers are part of the result of a computer program that counts the snake-like polyominoes in a rectangle of given size b X h by their length.
a(16) >= 161.

Examples

			For n=4, the maximum length of a snake-like polyomino that fits in a square of side 4 is 11 and there are 84 such snakes.
Maximum-length snakes for n = 1 to 4 are shown below.
   X    X X    X X X    X X X X
        X      X   X    X     X
               X   X    X     X
                        X   X X
		

Crossrefs

Formula

a(n) >= A047838(n+1).
For n > 2: a(n) >= 2*floor(n/3)*(2n-3*floor(n/3)-2)+5. - Elijah Beregovsky, May 11 2020
a(n) <= (2*n*(n+1)-1)/3. - Elijah Beregovsky, Nov 09 2020
a(n) = 2*n^2/3 + O(n) (Beluhov 2023). - Pontus von Brömssen, Jan 30 2023

Extensions

a(15) from Andrew Howroyd, Feb 04 2020
a(16)-a(17) from Yi Yang, Oct 03 2022

A331986 Number of snake-like polyominoes with the maximum possible number of unit squares in an n X n square.

Original entry on oeis.org

1, 4, 8, 84, 56, 136, 52, 216, 16, 1504, 2352, 1152, 1344, 123216, 82432, 11008, 308992
Offset: 1

Views

Author

Alain Goupil, Feb 03 2020

Keywords

Comments

The maximum possible number of unit squares is given by A331968(n).
Equivalently, a(n) is the number of maximum length paths without chords in the n X n grid graph. A path without chords is an induced subgraph that is a path.
For n > 1, a(n) is a multiple of 4 since a solution can have at most one symmetry considering rotations and reflections. - Andrew Howroyd, Feb 04 2020

Examples

			For n = 4 the number of snake-like polyominoes with 11 cells is 84.
		

Crossrefs

Main diagonal of A360916.
Cf. A331968, A059525 (connected induced subgraphs), A099155.
Cf. A332920 (non-isomorphic snakes), A332921 (symmetric snakes).

Extensions

a(15) from Andrew Howroyd, Feb 04 2020
a(16)-a(17) from Yi Yang, Oct 03 2022

A357619 Length of longest induced path (or chordless path) in the n-Fibonacci cube graph.

Original entry on oeis.org

0, 1, 2, 3, 6, 9, 13, 20, 30
Offset: 0

Views

Author

Pontus von Brömssen, Oct 06 2022

Keywords

Crossrefs

Formula

a(n) >= A357620(n) - 2.

A357499 Triangle read by rows: T(n,k) is the length of the longest induced path in the n-dimensional hypercube, such that the end points of the path are at Hamming distance k, 0 <= k <= n.

Original entry on oeis.org

0, 0, 1, 0, 1, 2, 0, 1, 4, 3, 0, 1, 6, 7, 4, 0, 1, 12, 13, 12, 11, 0, 1, 26, 25, 24, 25, 24
Offset: 0

Views

Author

Pontus von Brömssen, Oct 01 2022

Keywords

Examples

			Triangle begins:
  n\k| 0  1  2  3  4  5  6
  ---+--------------------
   0 | 0
   1 | 0  1
   2 | 0  1  2
   3 | 0  1  4  3
   4 | 0  1  6  7  4
   5 | 0  1 12 13 12 11
   6 | 0  1 26 25 24 25 24
		

Crossrefs

Cf. A099155 (row maxima), A357360 (main diagonal).

A358355 Maximum length of an induced path (or chordless path) in the n-halved cube graph.

Original entry on oeis.org

0, 1, 1, 2, 3, 6, 11, 18
Offset: 1

Views

Author

Pontus von Brömssen, Nov 12 2022

Keywords

Crossrefs

Formula

a(n) >= A358356(n) - 2.

A358357 Maximum length of an induced path (or chordless path) in the n-folded cube graph.

Original entry on oeis.org

1, 1, 2, 4, 10, 22
Offset: 2

Views

Author

Pontus von Brömssen, Nov 12 2022

Keywords

Crossrefs

Formula

a(n) >= A358358(n)-2. Equality holds for 3 <= n <= 7.
For n > 2, a(n) <= (2^(n-2)*n-1)/(n-1)-1. - Elijah Beregovsky, Dec 22 2022

A330079 Number of n-step self-avoiding walks starting at the origin that are restricted to the boundary walls of the first octant of the cubic lattice.

Original entry on oeis.org

1, 3, 9, 27, 75, 213, 585, 1623, 4425, 12123, 32883, 89415, 241557, 653649, 1760427, 4747005, 12754593, 34301463, 91990575, 246880023, 661075149, 1771199169, 4736741853, 12673587057, 33856816431, 90482953989, 241499070195, 644781165933, 1719559634451, 4587222964881, 12225165127887
Offset: 0

Views

Author

Francois Alcover, Nov 30 2019

Keywords

Comments

These are walks in the first octant of the cubic lattice, never leaving the three walls forming the octant. The walls are the sets of points (x>=0, y>=0, z=0), (x>=0, y=0, z>=0), and (x=0, y>=0, z>=0) with (x,y,z) in Z^3.

Crossrefs

The "snake in the box" problem (A000937, A099155) has a similar flavor. - N. J. A. Sloane, Dec 01 2019

Extensions

a(18)-a(25) Scott R. Shannon, Aug 17 2020
a(26)-a(30) from Bert Dobbelaere, Oct 28 2023

A357360 Maximum length of an induced path (or chordless path or snake path) between two antipodal nodes of the n-dimensional hypercube.

Original entry on oeis.org

0, 1, 2, 3, 4, 11, 24
Offset: 0

Views

Author

Pontus von Brömssen, Sep 25 2022

Keywords

Comments

The length is defined as the number of edges along the path, so the number of nodes of the longest path is a(n)+1.

Examples

			For n <= 4, the only induced paths between two antipodal nodes are the shortest paths, so a(n) = n.
For n = 5, a longest induced path is 00000 - 10000 - 11000 - 11100 - 01100 - 01110 - 00110 - 00111 - 00011 - 10011 - 11011 - 11111, so a(5) = 11.
		

Crossrefs

Cf. A099155 (the ends of the path does not have to be antipodal), A357234 (paths between opposite corners of a square grid).
Main diagonal of A357499.

Formula

a(n) <= A099155(n).
Showing 1-9 of 9 results.