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.

A384183 a(n) = minimum number of steps required to move n stones from a hole to the next one in an infinite row of holes, where at one step we can move any k stones at once from a hole to the hole at distance k to the left or to the right, and there are n stones overall.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 5, 6, 7, 7, 6, 7, 7, 8, 7, 7, 8, 9, 8, 8, 9, 8, 8, 9, 8, 9, 8, 9, 9, 10, 9, 9, 10, 9, 9, 9, 10, 10, 9, 10, 9, 10, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 10, 10, 10, 10, 10, 11, 10, 11, 10, 11, 11, 10, 11, 11, 11, 11, 11, 11, 11, 11, 10, 11, 11, 11
Offset: 0

Views

Author

Konstantin Knop, May 21 2025

Keywords

Examples

			For n = 0 through n = 5, the fastest is to move n times 1 stone from the origin to the next hole.
For n = 6, one can move two times three stones three holes further, then three times two stones two holes "backwards", therefore a(6) = 2 + 3 = 5. Similarly, for a(3*4 = 12) = 3 + 4 = 7, and a(4*5 = 20) = 4 + 5 = 9. However, for larger oblong numbers, better solutions exist, and a(m*(m+1)) < 2m+1 for m > 4.
		

Formula

a(n+k) <= a(n) + a(k) <= a(n) + k, for all n, k >= 0. - M. F. Hasler, May 24 2025
a(4k+1) <= 5+a(k+1), a(4k+2) <= 4+a(k+1), a(4k+3) <= 5+a(k+1), a(4k+4) <= 6+a(k+1) for all k > 0. - Konstantin Knop, May 27 2025
a(m^2*k+m) <= 2*m + a(k+1), for all k > 0 and m >= 2. - Yifan Xie, Jun 09 2025

Extensions

a(11)-a(43) from Max Alekseyev, May 22 2025