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.

A360360 Given a deck of colored cards, move the top card below the bottom-most card of the same color, with one other card between them. (If the top and bottom cards have the same color, the top card is moved to the bottom of the deck; if there is no other card of the same color, the top card is moved one step down in the deck.) a(n) is the maximum, over all initial color configurations of a deck of n cards, of the length of the eventual cycle when repeatedly applying this move.

Table of values

n a(n)
1 1
2 2
3 2
4 2
5 4
6 4
7 8
8 8
9 16
10 16
11 32
12 32
13 64
14 64

List of values

[1, 2, 2, 2, 4, 4, 8, 8, 16, 16, 32, 32, 64, 64]