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.

A329232 The number of counterclockwise steps during the grasshopper procedure.

Original entry on oeis.org

0, 0, 1, 0, 2, 3, 3, 0, 9, 6, 4, 5, 4, 5, 7, 0, 18, 10, 4, 7, 10, 14, 31, 15, 11, 9, 25, 16, 19, 23, 12, 0, 28, 15, 21, 29, 25, 17, 16, 38, 26, 30, 18, 26, 49, 29, 43, 29, 38, 23, 37, 31, 55, 43, 46, 53, 25, 42, 62, 51, 29, 51, 56, 0, 31, 56, 69, 22, 35, 65
Offset: 1

Views

Author

Peter Kagey, Nov 10 2019

Keywords

Comments

The grasshopper procedure: n positions are evenly spaced around a circle, a grasshopper hops randomly to any position, after the k-th hop, the grasshopper looks clockwise and counterclockwise k positions. If one of the positions has been visited less often then the other, it hops there; if both positions have been visited an equal number of times, it hops k steps in the clockwise position. (See Mathematics Stack Exchange link for more details.)
Conjecture: a(n)=0 if and only if n = 2^k.

Crossrefs