Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

A frog hopping puzzle with a flavor of design theory and resource allocation

Combinatorics

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

I heard this problem from friends in theoretical computer science. Start with nnn frogs at position 000. Each move, the player selects a frog (say at position iii) to move forward by at most kkk steps, where kkk is the total number of frogs currently at position iii (before the move, so it includes the frog itself). Let T(n)T(n)T(n) be the minimal number of moves it needs to move all frogs to position nnn.

Obtaining the following two bounds are at the difficulty of tech-company interview questions:

Proposition 1. T(n)≥nlog⁡nT(n)\geq n\log nT(n)≥nlogn.

Proof. We shall prove T(n)≥∑i=1n⌈n/i⌉T(n)\geq \sum_{i=1}^n \lceil n/i\rceilT(n)≥∑i=1n​⌈n/i⌉. Label the frogs by 111 to nnn, and without loss of generality, we may assume each time we move the largest labeled frog in its location. Then each time the frog iii can at most move by iii steps, so the frog iii takes at least ⌈n/i⌉\lceil n/i\rceil⌈n/i⌉ steps to position nnn.

Proposition 2. T(n)≤nlog⁡2nT(n)\leq n\log_2 nT(n)≤nlog2​n (asymptotically).

Proof (sloppy). Divide and conquer. Move n/2n/2n/2 of them to the position n/2n/2n/2 (each taking only one step, so n/2n/2n/2 steps in total); then move the rest to n/2n/2n/2 using T(n/2)T(n/2)T(n/2) steps. Then repeat the same to move everything to nnn. So T(n)≤2(n/2+T(n/2))T(n)\leq 2(n/2+T(n/2))T(n)≤2(n/2+T(n/2)) and solving the recurrence gives T(n)≤nlog⁡2nT(n)\leq n\log_2 nT(n)≤nlog2​n.

Now note that there is a gap in the constant multiples between the bound!

Question. Improve the bound 1≤lim inf⁡nT(n)nlog⁡n≤lim sup⁡nT(n)nlog⁡n≤1log⁡2.1\leq \liminf_{n} \frac{T(n)}{n\log n} \leq \limsup_{n} \frac{T(n)}{n\log n} \leq \frac{1}{\log 2}.1≤liminfn​nlognT(n)​≤limsupn​nlognT(n)​≤log21​.

Current attempt: A more careful analysis of the method of Proposition 1 can prove the following:

Proposition 3. For n≥3n\geq 3n≥3, T(n)≥1+⌈n2⌉+⌊n2⌋+∑i=4n⌈ni⌉=1+n+∑i=4n⌈ni⌉.T(n)\geq 1+\left\lceil \frac{n}{2} \right\rceil+\color{red}{\left\lfloor \frac{n}{2} \right\rfloor}+\sum_{i=4}^n \left\lceil \frac{n}{i} \right\rceil=1+n+\sum_{i=4}^n \left\lceil \frac{n}{i} \right\rceil.T(n)≥1+⌈2n​⌉+⌊2n​⌋+∑i=4n​⌈in​⌉=1+n+∑i=4n​⌈in​⌉.

Proof. As in the proof of Proposition 1, label frogs as 111 to nnn and only allow to move the largest labeled frog in its location each time. Construct an n×(n+1)n\times (n+1)n×(n+1) grid with rows labeled by 1,…,n1,\dots,n1,…,n from bottom to top, and columns labeled 0,…,n0,\dots,n0,…,n from left to right. Fill a square, say (i,j)(i,j)(i,j), with 111 if the iii-th frog has visited position jjj, and 000 otherwise. Call the filling f(i,j)f(i,j)f(i,j).

Then the jumping rule amounts to the gap condition:

(*) If j1<j2j_1<j_2j1​<j2​ and iii satisfies that f(i,j1)=f(i,j2)=1,f(i,j)=0 for j1<j<j2f(i,j_1)=f(i,j_2)=1, f(i,j)=0\text{ for }j_1<j<j_2f(i,j1​)=f(i,j2​)=1,f(i,j)=0 for j1​<j<j2​, then j2−j1≤∣{i′:1≤i′≤i,f(i′,j1)=1}∣.j_2-j_1\leq |\{i': 1\leq i'\leq i, f(i',j_1)=1\}|.j2​−j1​≤∣{i′:1≤i′≤i,f(i′,j1​)=1}∣.

Denote the boundary condition

(**) f(i,0)=f(i,n)=1f(i,0)=f(i,n)=1f(i,0)=f(i,n)=1 for all iii.

Then is not hard to see that T(n)=min⁡f satisfies (*)(**)∑i,j=1nf(i,j).T(n)=\min_{f\text{ satisfies (*)(**)}} \sum_{i,j=1}^{n} f(i,j).T(n)=minf satisfies (*)(**)​∑i,j=1n​f(i,j).

(Note that the fillings at the leftmost column j=0j=0j=0 do not count.)

Then clearly each row iii needs to fill at least ⌈n/i⌉\lceil n/i\rceil⌈n/i⌉ squares by the gap condition. However, this extreme cannot be achieved.

Lemma. For any fff satisfying (*)(**), ∑j=1nf(2,j)+f(3,j)≥n\sum_{j=1}^n f(2,j)+f(3,j)\geq n∑j=1n​f(2,j)+f(3,j)≥n. (Instead of ≈n/2+n/3=5n/6\approx n/2+n/3=5n/6≈n/2+n/3=5n/6 predicted by before.)

Intuition. If you place the 2nd row every other square, then you can't place the 3rd row every three squares because you are only allowed to jump by 3 when the corresponding square on the 2nd row is filled.

"Proof" of Lemma. Induction on nnn, but it's kind of messy and requires a few cases.

Speculation. I guess the correct asymptotic for T(n)T(n)T(n) is nlog⁡2nn\log_2 nnlog2​n, so further meaning work probably lies in improving the lower bound. From the grid filling viewpoint, we want to fill the grid as sparse possible, but denser fillings on lower rows give more possibility for the upper rows to be sparser. This makes it hard to prove that any "greedy" construction is optimal, but it seems reasonable to believe that the following is.

A greedy construction. Consider the filling fff defined by: let kkk be the largest integer such that 2k≤i2^k\leq i2k≤i. Then jump the frog iii by 2k2^k2k steps each time, until it is able to jump to nnn directly.

It is not hard to convert this filling fff to an actual jump sequence, giving an upper bound

T(n)≤∑i=1n⌈n−i2⌊log⁡2i⌋+1⌉=?OEIS:A123753.T(n)\leq \sum_{i=1}^n \left\lceil \frac{n-i}{2^{\lfloor \log_2 i\rfloor}+1}\right\rceil \overset{?}{=}\text{OEIS:A123753}.T(n)≤∑i=1n​⌈2⌊log2​i⌋+1n−i​⌉=?OEIS:A123753.

(The =?\overset ?==? means the formulas are not quite the same on the nose, and I haven't tried to verify they are equal, though I expect it is an easy exercise.)

Conjecture. This is optimal.

Statement and context adapted from MathOverflow · Yifeng Huang

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Asymptotic behaviour
This studies a quantity as its parameter becomes large. Writing f(n) ∼ g(n) means that their ratio tends to 1, not that the functions are exactly equal.

Topics : co.combinatorics · combinatorial-designs

Authors listed by the source : Yifeng Huang

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : February 5, 2025

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni