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.

A354916 Maximum length of 4 finite snakes in the Snake Number Problem with n-periodic instructions in an infinite square grid (see Comments).

Original entry on oeis.org

33, 75, 348, 435, 504, 595, 805, 4382
Offset: 4

Views

Author

Rodolfo Kurchan, Jun 11 2022

Keywords

Comments

We start with 4 infinite snakes, and 4 possible directions: up, right, down, left.
If on its turn one of the snakes cannot execute an order because that square is occupied, it goes to the next order, and so on.
The snakes can be blocked and finish there or can continue infinitely.
Which are the longest finite snakes using n instructions for 4 snakes that start in the same square (with n >= 4 because with 3 or fewer instructions are infinite)?LINKS

Examples

			                      | Instructions that give
   n | Maximum length |   the maximal length
  --------------------------------------------
   4          33              URDL
   5          75              URDLU
   6         348              UURDUL
   7         435              URUULDU
   8         504              URURUULD
   9         595              URDDDDDDL
  10         805              UUURUDLLDD
  11        4382              UUDDRDUUUDL
		

Crossrefs