Divisibility rules for integers presented as permutations
Thomas Oliver, Alexei Vernitski
TL;DR
The paper develops a factorial-number-system framework using tame permutations to represent integers and derives linear divisibility criteria that depend only on a finite initial block of factoradic digits, via inversion sets of prefix permutations. The main theorem expresses $n$ modulo $k$ as $n \equiv \sum_{i<j} \overleftrightarrow{i,j} \cdot j! \bmod k$, enabling simple arithmetical tests for divisibility by small $k$. This approach connects classical modular checks to a permutation-based representation, highlighting finite, linear divisibility rules and the structure of factoradic digits. The work provides a bridge between combinatorial representations and modular arithmetic, with concrete corollaries for practical divisibility testing.
Abstract
In this note, we represent integers in a type of factoradic notation. Rather than use the corresponding Lehmer code, we will view integers as permutations. Given a pair of integers n and k, we give a formula for n mod k in terms of the factoradic digits, and use this to deduce various divisibility rules.
