The exact classes for decimal block multiplication and division by three

Two positive integers are mutually reachable by decimal block multiplication and exact division by three precisely when they have the same number of trailing zeros and, after those zeros are removed, their residues modulo \(40\) lie in the same row of the table below. This answers Alexander Ganahl's question about which positive integers \(a,b\) admit a finite sequence of moves from \(a\) to \(b\). The original problem gives the four residues that can reach \(1\). The classification supplies the answer for every destination. Alexander Ganahl via Evan O'Dorney, WNT 024:15, subquestion 1, PDF p. 5 | Residues modulo \(40\) after removing trailing zeros | | --- | | \(1,3,9,27\) | | \(2,6,14,18,22,26,34,38\) | | \(4,8,12,16,24,28,32,36\) | | \(5,15,25,35\) | | \(7,21,23,29\) | | \(11,13,17,19,31,33,37,39\) | For a positive integer \(n\), let \(t_n\) be the largest non-negative integer with \(10^{t_n}\mid n\), and set \(n'=n/10^{t_n}\). To decide whether \(a\) can reach \(b\), compare \(t_a\) and \(t_b\), then look up the least non-negative residues of \(a'\) and \(b'\). For destination \(1\), the first row recovers the printed criterion \(a\bmod 40\in\{1,3,9,27\}\). A move selects a consecutive block of width \(w\geq1\) with \(r\geq0\) digits to its right. If \(B\) is the value of the block, \(P\) the prefix and \(A\) the suffix, write \(n=10^{r+w}P+10^rB+A\), with \(0\leq B<10^w\) and \(0\leq A<10^r\). Multiplication and division act respectively by \[n\longmapsto n+2B10^r,\qquad n\longmapsto n-2(B/3)10^r\quad\text{when }3\mid B. \] These rules allow a carry into the prefix and retain the block's place value when division requires zero padding. Each new move uses the resulting integer's ordinary decimal expansion. Multiplying or dividing by three preserves the factor of ten in any block containing the last non-zero digit, so the trailing-zero count is fixed. Moves on the integer after stripping the zeros lift to the original integer by shifting the selected block left by \(t_n\) places. On integers with a non-zero units digit, four successive multiplications of that digit add exactly \(40\). This gives a route between any two such integers \(u,v\) of the same residue. Choose a non-negative integer \(h\) with \(81^h v\geq u\), use \((81^h v-u)/40\) groups of four units moves, then divide the whole number by three exactly \(4h\) times. The group count is an integer because \(81\equiv1\pmod{40}\). For a route between different residues in the same row, take \(x\) in \(0,\ldots,39\) with \(10\nmid x\) and use the three residue maps \[M(x)=3x,\qquad U(x)=x+2(x\bmod 10),\qquad T(x)=x+20(\lfloor x/10\rfloor\bmod 2)\pmod{40}. \] All three outputs are reduced modulo \(40\). The maps are realised by multiplying the whole number, the units digit or the tens digit, respectively, by three. If a tens digit is needed, four units moves first add \(40\) without changing the residue. A block with at least two digits to its right leaves the residue fixed. A block with exactly one digit to its right acts by \(T\) under either allowed operation. For a block ending at the units place, multiplication acts by \(U\) at width one and \(M\) at greater widths. Exact division gives the corresponding inverse on residues. Since \(M^4=U^4=T^2=\mathrm{id}\), where \(\mathrm{id}\) leaves the residue fixed, iterating only the forward maps from a starting residue visits its entire row. A path through these maps can therefore be followed by the same-residue route to the exact destination. The classification applies to all positive integers in base ten with multiplier three. Other bases and multipliers are a separate subquestion.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-04
DOI
https://doi.org/10.5281/zenodo.24804226
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

The exact classes for decimal block multiplication and division by three

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

The exact classes for decimal block multiplication and division by three

Zixuan He
preprint en

Abstract

Two positive integers are mutually reachable by decimal block multiplication and exact division by three precisely when they have the same number of trailing zeros and, after those zeros are removed, their residues modulo \(40\) lie in the same row of the table below. This answers Alexander Ganahl's question about which positive integers \(a,b\) admit a finite sequence of moves from \(a\) to \(b\). The original problem gives the four residues that can reach \(1\). The classification supplies the answer for every destination. Alexander Ganahl via Evan O'Dorney, WNT 024:15, subquestion 1, PDF p. 5 | Residues modulo \(40\) after removing trailing zeros | | --- | | \(1,3,9,27\) | | \(2,6,14,18,22,26,34,38\) | | \(4,8,12,16,24,28,32,36\) | | \(5,15,25,35\) | | \(7,21,23,29\) | | \(11,13,17,19,31,33,37,39\) | For a positive integer \(n\), let \(t_n\) be the largest non-negative integer with \(10^{t_n}\mid n\), and set \(n'=n/10^{t_n}\). To decide whether \(a\) can reach \(b\), compare \(t_a\) and \(t_b\), then look up the least non-negative residues of \(a'\) and \(b'\). For destination \(1\), the first row recovers the printed criterion \(a\bmod 40\in\{1,3,9,27\}\). A move selects a consecutive block of width \(w\geq1\) with \(r\geq0\) digits to its right. If \(B\) is the value of the block, \(P\) the prefix and \(A\) the suffix, write \(n=10^{r+w}P+10^rB+A\), with \(0\leq B<10^w\) and \(0\leq A<10^r\). Multiplication and division act respectively by \[n\longmapsto n+2B10^r,\qquad n\longmapsto n-2(B/3)10^r\quad\text{when }3\mid B. \] These rules allow a carry into the prefix and retain the block's place value when division requires zero padding. Each new move uses the resulting integer's ordinary decimal expansion. Multiplying or dividing by three preserves the factor of ten in any block containing the last non-zero digit, so the trailing-zero count is fixed. Moves on the integer after stripping the zeros lift to the original integer by shifting the selected block left by \(t_n\) places. On integers with a non-zero units digit, four successive multiplications of that digit add exactly \(40\). This gives a route between any two such integers \(u,v\) of the same residue. Choose a non-negative integer \(h\) with \(81^h v\geq u\), use \((81^h v-u)/40\) groups of four units moves, then divide the whole number by three exactly \(4h\) times. The group count is an integer because \(81\equiv1\pmod{40}\). For a route between different residues in the same row, take \(x\) in \(0,\ldots,39\) with \(10\nmid x\) and use the three residue maps \[M(x)=3x,\qquad U(x)=x+2(x\bmod 10),\qquad T(x)=x+20(\lfloor x/10\rfloor\bmod 2)\pmod{40}. \] All three outputs are reduced modulo \(40\). The maps are realised by multiplying the whole number, the units digit or the tens digit, respectively, by three. If a tens digit is needed, four units moves first add \(40\) without changing the residue. A block with at least two digits to its right leaves the residue fixed. A block with exactly one digit to its right acts by \(T\) under either allowed operation. For a block ending at the units place, multiplication acts by \(U\) at width one and \(M\) at greater widths. Exact division gives the corresponding inverse on residues. Since \(M^4=U^4=T^2=\mathrm{id}\), where \(\mathrm{id}\) leaves the residue fixed, iterating only the forward maps from a starting residue visits its entire row. A path through these maps can therefore be followed by the same-residue route to the exact destination. The classification applies to all positive integers in base ten with multiplier three. Other bases and multipliers are a separate subquestion.

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon