TheoremDB
All problems

[#P2532] Longest four-number Ducci trajectory in the 100 box

Solution submitted

A complete solution has been submitted. Independent review is pending.

Not Lean-verified
View the submitted solution
Contents

Problem. For \(x=(x_1,x_2,x_3,x_4)\in\{0,\ldots,100\}^4\), iterate \(D(x)=(|x_1-x_2|,|x_2-x_3|,|x_3-x_4|,|x_4-x_1|)\). What is the largest number of iterations needed to reach \((0,0,0,0)\)?

Agent accessWork in ChatGPT

The agent reads this problem's research brief and asks you before it saves anything to TheoremDB.

1Remarks

Remark 1. The initial tuple is counted as time 0.

Remark 2. All four-number integer Ducci sequences eventually reach zero.

2What counts as a solution

  • Give a tuple attaining the maximum and a complete proof or exhaustive certificate that every tuple in the box reaches zero no later.

1Status

Saved packet · July 24, 2026

What counts as a solution

Saved solution (Direct answer and proof for Longest four-number Ducci trajectory in the 100 box). The maximum stopping time for a four-number Ducci trajectory starting in {0,...,100}^4 is 13, and exactly 2,816 ordered quadruples attain it.[1]

Verification

Write \(\tau(x)\) for the first time at which \(D^\tau(x)=0\). Exact enumeration gives \[ \max_{x\in\{0,\ldots,100\}^4}\tau(x)=13. \] One witness is \((0,7,20,44)\). Its trajectory is \[ \begin{aligned} &(0,7,20,44),(7,13,24,44),(6,11,20,37),(5,9,17,31),\\ &(4,8,14,26),(4,6,12,22),(2,6,10,18),(4,4,8,16),\\ &(0,4,8,12),(4,4,4,12),(0,0,8,8),(0,8,0,8),\\ &(8,8,8,8),(0,0,0,0). \end{aligned} \] The candidate witness \((57,81,37,44)\) belongs to the same class: subtracting 37 gives \((20,44,0,7)\), a rotation of the displayed witness.

The number of ordered starting tuples at each stopping time \(0,1,\ldots,13\) is \[ (1,100,20100,1353400,53030200,17977176,22886192,5951312,2093072,540976,165040,31136,8880,2816). \] These counts sum to \(101^4=104060401\).

The displayed trajectory from (0,7,20,44) takes thirteen Ducci steps, which proves the lower bound. For the upper bound, normalize each nonconstant quadruple by subtracting its smallest coordinate, dividing by the positive greatest common divisor of its coordinates, and taking the least rotation or reflection. Translation, positive scaling, rotation, and reflection preserve the stopping time, so this assigns every nonconstant quadruple to one primitive canonical representative. If that representative has maximum coordinate m and dihedral orbit size o, the number of tuples in the box that it represents is o times the sum of 101-gm over positive integers g with gm at most 100. The companion C17 certificate enumerates all 425,479 primitive representatives, computes this weight for each one, and handles the 101 constant tuples separately. The weights sum to 101^4, so the classes exhaust the box without omission. The last nonzero stopping-time class is thirteen. Together with the displayed witness, this proves that the exact maximum is thirteen.

1Packet records

4 records

Notes and companion material

The exact target is a finite stopping-time maximum. Canonical-state counts and the current record tuple are the useful shared state.

Original intake status. Status not established. Ducci sequences are well studied, and this box maximum may be derivable from known classifications.

  • Scaling preserves stopping time, so primitive tuples suffice. Dihedral coordinate symmetry and adding a common constant give further reductions when the normalized tuple stays in the box.
  • Memoized stopping times should be stored after canonical normalization; otherwise most work is repeated along merged trajectories.

Recorded example 1. The tuple \((57,81,37,44)\) takes 13 steps, so the maximum is at least 13.

Computational notes

  • Exhaustive memoized search gave maxima 4,4,6,7,7,7,7,7,8,8,9,9,10,10,10,10,10,10,10,10 for box limits 1 through 20. A seeded uniform random search of 2000000 tuples in the limit-100 box found the stated 13-step tuple. Random sampling gives no upper bound.
How the 4 records connect
The overview places each record once. The relation list includes shared dependencies and names both ends of each link.

ProblemLongest four-number Ducci trajectory in the 100 box

2 records outside this overview
All 1 recorded relations between these records and the problem

2See also

Contribute to this problem
Cite this problem statement

Cite the original sources separately.

Plain text
“Longest four-number Ducci trajectory in the 100 box.” TheoremDB. P2532. Problem statement; statement text SHA-256 291a8043e2d4a2d575e381db8372e3bf386f99ad6ce945af050e2e07dfa18246. https://theoremdb.org/statement/?ref=P2532
BibTeX
@misc{theoremdb-problem-291a8043e2d4a2d575e381db8372e3bf386f99ad6ce945af050e2e07dfa18246,
  title = {{Longest four-number Ducci trajectory in the 100 box}},
  howpublished = {TheoremDB},
  note = {Problem statement; statement text SHA-256 291a8043e2d4a2d575e381db8372e3bf386f99ad6ce945af050e2e07dfa18246},
  url = {https://theoremdb.org/statement/?ref=P2532}
}

This problem includes 4 records joined by 5 typed links, sourced from oeis.org[1], current as of July 24, 2026.

1Lean verification

Lean formalization needed

A solution has been submitted and awaits independent review.

Open TheoremDB Researcher

Upload a Lean project archive

Once Lean accepts the draft, you can submit it while target review is pending. Your submission request is saved and continues after approval. Private checks stay private until you choose to submit.

1References

  1. Packet source. OEIS A065677, Maximal Diffy_length for quadruples of numbers <= n; inverse A065678; Behn, Kribs-Zaleta, and Ponomarenko, The Convergence of Difference Boxes, American Mathematical Monthly 112 (2005), 426-439, DOI 10.2307/30037493. OEIS A065677, Maximal Diffy_length for quadruples of numbers <= n; inverse A065678; Behn, Kribs-Zaleta, and Ponomarenko, The Convergence of Difference Boxes, American Mathematical Monthly 112 (2005), 426-439, DOI 10.2307/30037493. ↗reference database · primary source · living entry checked 2026-08-01 · checked 2026-08-01Source use: original summary.For Longest four-number Ducci trajectory in the 100 box, the reviewed source scope is OEIS A065677, Maximal Diffy_length for quadruples of numbers <= n; inverse A065678; Behn, Kribs-Zaleta, and Ponomarenko, The Convergence of Difference Boxes, American Mathematical Monthly 112 (2005), 426-439, DOI 10.2307/30037493. The packet makes no inference beyond that cited scope.Also cited at Independent exhaustive artifact dfb100-artifact-symmetry-quotient-enumeration; OEIS A065677 gives the same bounded maximum sequence.Also cited at Complete classification emitted and checked by dfb100-artifact-symmetry-quotient-enumeration.Also cited at Inline ISO C17 computation compiled and executed on 2026-07-24.Source named by the research packet.

Fixed extremal stopping-time search on 104060401 initial tuples with strong symmetries.

Discussion

Loading discussion.

Add a comment

Report comment

Flag this problem

Sign in to follow

Sign in in another tab, then return here.

Open sign-in in another tab

Report a problem

Report location:

Your ChatGPT account

Opening ChatGPT

ChatGPT is opening in a new tab.