QUANTAVANE

Computing and operations research · open

Shortest reset words of the quadratic automaton modulo p.

Best known value: 31 (minimize), held by Quantavane (Arhan Canli) since 9 November 2026.

The problem

For a prime p let Q_p be the automaton with states 0, 1, ..., p-1 and two letters, a: x -> x + 1 and b: x -> x^2 (mod p). A reset word is a word that sends every state to one and the same state; let r(p) be the length of a shortest reset word. Determine r(p). The headline cell is p = 101, where 25 <= r(101) <= 31: find a reset word of length at most 30, or prove that 31 is optimal.

Why it is interesting

The Cerny conjecture says that an n-state synchronizing automaton has a reset word of length at most (n-1)^2; it is open in general and proved for several classes, among them circular automata, where one letter permutes the states in a single cycle (Dubuc, RAIRO Theor. Inform. Appl. 32 (1998) 21-34). Q_p is circular (the letter a), so r(p) <= (p-1)^2, but its second letter is the squaring map, whose functional graph modulo p carries the arithmetic of quadratic residues; the exact values below are tiny by comparison (r(101) <= 31 against the bound 10,000) and depend on p in an irregular way (r(17) = 8 and r(97) = 14, while r(47) = 28), so the problem asks how arithmetic controls synchronization. No formula, bound or table for r(p) was found.

Is it new?

New. The automaton x -> x + 1, x -> x^2 (mod p) and its reset thresholds appear in no paper, table or OEIS entry found; the sequence r(3), r(5), ..., r(53) is not in the OEIS.

Checked 9 November 2026, before the problem was added: 4 arXiv searches, 2 OEIS searches, and the keeper tables of the Open Problems Benchmark. Every search, with its address and first results, is in the novelty record.

First values

First values
pr(p)how
33exact (breadth-first search over subsets)
55exact (breadth-first search over subsets)
79exact (breadth-first search over subsets)
1112exact (breadth-first search over subsets)
1310exact (breadth-first search over subsets)
178exact (breadth-first search over subsets)
1916exact (breadth-first search over subsets)
2317exact (breadth-first search over subsets)
2916exact (breadth-first search over subsets)
3121exact (breadth-first search over subsets)
3719exact (breadth-first search over subsets)
4114exact (breadth-first search over subsets)
4324exact (breadth-first search over subsets)
4728exact (breadth-first search over subsets)
5323exact (breadth-first search over subsets)
59<= 34 (ours), >= 26open
6121exact (breadth-first search over subsets)
67<= 38 (ours), >= 25open
71<= 33 (ours), >= 25open
7319exact (breadth-first search over subsets)
79<= 39 (ours), >= 25open
83<= 37 (ours), >= 25open
8923exact (breadth-first search over subsets)
9714exact (breadth-first search over subsets)
101<= 31 (ours), >= 25open
103<= 46 (ours), >= 24open
107<= 47 (ours), >= 24open
109<= 33 (ours), >= 25open
11319exact (breadth-first search over subsets)
127<= 49 (ours), >= 24open

Exact values: breadth-first search over the subsets of states reached from the full set (tools/src/syncq.c); where that search exceeded 14 million subsets, the depth it completed is a lower bound and our beam search gives the upper bound. Rows improved on 10 November 2026 show the value of the cell (see Cells).

Cells

The same question at each value of its parameter (p, a prime): 51 cells, 18 exact (an exhaustive search finished) and 33 best known (ours). Each cell has its certificate in the benchmark and is checked with the same checker.

Cells
CellpValueStatus
sync-quadratic-779exact
sync-quadratic-111112exact
sync-quadratic-131310exact
sync-quadratic-17178exact
sync-quadratic-191916exact
sync-quadratic-232317exact
sync-quadratic-292916exact
sync-quadratic-313121exact
sync-quadratic-373719exact
sync-quadratic-414114exact
sync-quadratic-434324exact
sync-quadratic-474728exact
sync-quadratic-535323exact
sync-quadratic-595934best known
sync-quadratic-616121exact
sync-quadratic-676738best known
sync-quadratic-717133best known
sync-quadratic-737319exact
sync-quadratic-797939best known
sync-quadratic-838337best known
sync-quadratic-898923exact
sync-quadratic-979714exact
sync-quadratic-10110131best known (headline)
sync-quadratic-10310346best known
sync-quadratic-10710747best known
sync-quadratic-10910933best known
sync-quadratic-11311319exact
sync-quadratic-12712749best known
sync-quadratic-13113148best known
sync-quadratic-13713729best known
sync-quadratic-13913951best known
sync-quadratic-14914942best known
sync-quadratic-15115153best known
sync-quadratic-15715739best known
sync-quadratic-16316359best known
sync-quadratic-16716759best known
sync-quadratic-17317333best known
sync-quadratic-17917962best known
sync-quadratic-18118144best known
sync-quadratic-19119161best known
sync-quadratic-19319320best known
sync-quadratic-19719742best known
sync-quadratic-19919962best known
sync-quadratic-21121168best known
sync-quadratic-22322368best known
sync-quadratic-22722771best known
sync-quadratic-22922950best known
sync-quadratic-23323337best known
sync-quadratic-23923971best known
sync-quadratic-24124132best known
sync-quadratic-25125175best known

Exact cells: breadth-first search over the subsets of Z_p reached from Z_p, finished (tools/src/syncq.c). Best known cells: beam search over subsets keeping the 300,000 smallest per level (tools/src/syncbeam.c); an upper bound.

Best known value

31 for p = 101, held by Quantavane (Arhan Canli), 9 November 2026: the word in `refs/sync-quadratic.txt`. Lower bound 25: the breadth-first search finished every word of length at most 24 without reaching a single state (tools/src/syncq.c).

Bound on the other side: 25 (lower bound; exhaustive breadth-first search over all subsets reachable by words of length <= 24).

Check a solution

Text file: a word over the letters a and b (whitespace and lines starting with # are ignored), applied letter by letter from the left. Score: the length of the word (smaller is better).

git clone https://github.com/arhancanli/quantavane-benchmark
cd quantavane-benchmark
python3 -I obb.py check sync-quadratic FILE

The checker is ours, uses only the Python standard library, prints the exact value and accepts only valid certificates. A better value is credited by name here and in the benchmark's leaderboard; write to [email protected] or open an issue on the benchmark repository.

The problem file on GitHub All Originals

References