The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A329230 The number of steps it takes to reach all n positions around a circle during the grasshopper procedure. 4
1, 2, 3, 4, 10, 9, 7, 8, 23, 17, 16, 21, 20, 27, 29, 16, 58, 25, 28, 30, 40, 43, 88, 50, 40, 55, 87, 50, 62, 59, 70, 32, 81, 72, 67, 91, 84, 73, 71, 125, 107, 113, 69, 88, 148, 116, 135, 113, 158, 95, 137, 114, 182, 123, 174, 166, 112, 146, 215, 173, 126, 171 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
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.)
In the Mathematics Stack Exchange link, the author conjectures that a(n) = n if and only if n = 3, n = 7, or n = 2^k for some nonnegative k.
LINKS
Mathematics Stack Exchange User Vepir, Grasshopper jumping on circles.
EXAMPLE
For n = 5 the a(5) = 10 steps are:
[0,0,0,0,0] (randomly step to first position)
[1,0,0,0,0] (length 1 clockwise (right) step)
[1,1,0,0,0] (length 2 clockwise (right) step)
[1,1,0,1,0] (length 3 clockwise (right) step)
[1,2,0,1,0] (length 4 counterclockwise (left) step)
[1,2,1,1,0] (length 5 clockwise (right) step)
[1,2,2,1,0] (length 6 clockwise (right) step)
[1,2,2,2,0] (length 7 clockwise (right) step)
[2,2,2,2,0] (length 8 clockwise (right) step)
[2,2,2,3,0] (length 9 counterclockwise (left) step)
[2,2,2,3,1]
For example, the length 4 counterclockwise step occurs because stepping clockwise would result in landing in a position which has been visited once, and stepping counterclockwise would result in landing in a position which has not been visited before.
CROSSREFS
Sequence in context: A088303 A193858 A054930 * A119798 A015976 A370842
KEYWORD
nonn,walk
AUTHOR
Peter Kagey, Nov 08 2019
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 May 23 09:20 EDT 2024. Contains 372760 sequences. (Running on oeis4.)