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 toroidal version of Rubik's cube: how many shuffles?

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

S.K. Stein (Transversals of Latin Squares and their Generalizations, Pac. J. Math. 59(2), 1975) introduced the concept of an equi-nnn-square: a square matrix of size nnn filled with the digits (colors) 0,..,n−10, .., n-10,..,n−1 in equal amounts. The underlying formal nnn-square of positions (cells) is {0,1,..,n−1}2\{ 0, 1, .., n-1 \}^2{0,1,..,n−1}2 and the digit coloring is seen as a state. A horizontal move (H-move) of the square consists in rotating some rows cyclically by some integer amount. Different rows may be given a different rotation amount. Similarly, a vertical move (V-move) rotates some columns cyclically by some integer amount. Any composed move can be reduced to an alternating composition of H-moves and V-moves. An HV-shuffle applies an H-move followed by a V-move and a VH-shuffle applies a V-move followed by an H-move. In contrast with one-dimensional (simple-minded) shuffling --as with a deck of cards -- two-dimensional shuffling can effectively create randomness from order.

Cyclic rotations of rows and columns suggest a physical model of a formal nnn-square as a torus with longitudinal and latitudinal rotating rings. Hence an equi-nnn-square becomes an object with n2n^2n2 colored faces that may remind one of the Rubik's cube. In my paper "Shuffled equi-nnn-squares" available at

http://arxiv.org/abs/1701.02325

I proved three statements.

  1. Every permutation of colored cells in an equi-nnn-square can be achieved by a composition of HV-shuffles. The same goes with VH-shuffles. Note that the corresponding result does not hold for Rubik's cube: if the cube's colors are implemented by removable colored stickers, one can easily produce a permuted state from which the original state cannot be recovered in a legal way.

  2. Given n≥2n \geq 2n≥2 and an equi-nnn-square, there exists another equi-nnn-square which is no less than dnd_ndn​ shuffles away, where dn=⌈log⁡2(sn)2nlog⁡2(n)⌉.d_n = \lceil\frac{\log_2(s_n)}{2 n \log_2(n)}\rceil.dn​=⌈2nlog2​(n)log2​(sn​)​⌉. (sns_nsn​ denotes the number of different equi-nnn-squares.) For n<30n < 30n<30 this gives dn=⌈n/2⌉d_n = \lceil{n/2}\rceildn​=⌈n/2⌉.

  3. If 2≤n≤342 \leq n \leq 342≤n≤34 or n=37n = 37n=37, one never needs more than 6n±36 n \pm 36n±3 shuffles to transform one state into another one ("-" for nnn even, "+" otherwise).

The restriction on nnn is due to a combinatorial key result, which states that in an equi-nnn-square with restricted nnn,

any set of nnn positions can be mapped with one VH-shuffle onto a set of positions looking like the graph of a function (having one position in each column).

This result combines topics explained in two questions that have been presented earlier on math.stackexchange: Optimal nnn-sets in a formal nnn-square: how many rows? and Determining a “spaghetti boundary” of formal nnn-squares. The shuffle starts with a vertical move optimizing an nnn-set SSS and the subsequent H-move rotates the rows (rather, the parts of the optimized SSS inside) apart. Given the restrictions on nnn, the second move is possible because some critical boundary on the number of rows is exceeded by the optimal set.

Question 1. Are the key result and its consequence 3 still valid outside the restriction on nnn?

An equi-888-square, which is close in size to a standard Rubik's cube, may need up to 454545 shuffles to restore a given state (result 3). This may run up to 16∗4516 * 4516∗45 rotations of individual rings. In contrast, Rubik's cube can always be solved with at most 202020 "moves". The lower bound in result 2 is: 444 shuffles. Hence sharpness of results 2 and 3 is an issue:

Question 2. Our proof of result 3 uses a part-by-part realization of the given transformation. At the end of each step, some unintentional mess must be cleaned up. This may suggest that the upper bound is prone to improvement. For a challenging proposal: can it be that the lower bound of result 2 is closest to reality, i.e.: is this a small world phenomenon?

Statement and context adapted from MathOverflow · Marcel Van de Vel

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

A few useful definitions

Graph colouring
A proper vertex colouring gives adjacent vertices different colours. The chromatic number is the minimum number required. Edge colourings and other variants have their own rules, specified in the statement.
Graph
A set of vertices connected by edges. A vertex’s degree counts the incident edges; the statement specifies whether directions or multiple edges are allowed.

Topics : co.combinatorics

Authors listed by the source : Marcel Van de Vel

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : June 4, 2017

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