Abstract:
Using subdivision scheme theory, we develop a criterion to check if each natural number has at most one representation in the $n$-ary number system with a set of nonnegative integer digits $A=\{a_1,a_2,\dots, a_n\}$ that contains zero. This uniqueness property is shown to be equivalent to a certain restriction on the zeros of the trigonometric polynomial $\sum_{k=1}^n e^{-2\pi i a_k t}$. From this criterion, under a natural condition of irreducibility for $A$, we deduce that in case of a prime number $n$ uniqueness holds if and only if the digits of $A$ are distinct modulo $n$, whereas for any composite $n$ we show that the latter condition is not necessary. We also establish a connection of this uniqueness with the problem of semigroup freeness for affine integer functions of equal integer slope; in combination with the two criteria, this allows us to fill a gap in the work of Klarner on the question of Erdős about the densities of affine integer orbits and establish a simple algorithm to check the freeness and the positivity of density when the slope is a prime number.
Bibliography: 29 titles.
The research of V. Yu. Protasov was carried out with the support of the Theoretical Physics and Mathematics Advancement Foundation “BASIS” (grant no. 22-7-1-20-1). The work of A. L. Talambutsa was prepared within the framework of the HSE University Basic Research Program and with the support of the Theoretical Physics and Mathematics Advancement Foundation “BASIS” (grant no. 22-7-2-32-1).
Given an integer $n\geqslant 2$, we consider a set of nonnegative integers $A=\{a_1, \dots, a_m\}$, which are called digits of the (nonstandard) $n$-ary number system $A$. The main results of this paper are obtained under the assumption that $m=n$, but this equality is not necessary in general.
For an integer $k\geqslant 0$, by an $A$-expansion we mean any tuple of digits $(\alpha_0,\dots,\alpha_J)$ such that
In particular, for $k=0$ its $A$-expansion is an empty tuple. We say that the $n$-ary number system $A$ has the uniqueness property if each integer $k\geqslant 0$ has at most one $A$-expansion.
The uniqueness property was studied in the literature mainly because of two applications. The first is the theory of self-similar tiles, where uniqueness gives an existence criterion for a tile. See [14], [20] and [21] and the references there for the general multivariate case. The second application is related to coding theory, but as we will show, it also turns out to be connected with the freeness of particular semigroups and the densities of integer orbit sets arising from the action of integer affine functions.
The active analysis of number systems with positive digits was initiated in the early 1980s by Maurer, Salomaa and Wood in [22], where they introduced L-codes and discovered that if the code alphabet is unary, then the L-code corresponds to a nonstandard number system.1[x]1The condition $\alpha_J\ne 0$ for the leading digit in (1) is set to generalize the notion of uniqueness from [22] to number systems containing zero, for example, to the standard digit system $\{0,1,2,\dots, n-1\}$. They proved that such a unary code can uniquely be decoded if and only if the corresponding number system has the uniqueness property. It was also proved that this property fails necessarily if $m>n$, while if all the $\alpha_i$ are distinct modulo $n$, then the property holds. The authors also suggested a general decision problem of checking whether a number system has the uniqueness property. As shown by Honkala [11], this problem is decidable. Some other results concerning number systems were obtained in the next decade; for their description, we refer the reader to [12].
Even a little earlier than Maurer, Salomaa and Wood, in [15] Klarner came to the study of another decision problem, which is closely related to the uniqueness of number systems. The motivation was coming from the question of Erdős on when the density of an orbit set $\langle F:S \rangle$ is positive (see [9], p. 23, and [19]). Here the set $\langle F:S \rangle$ contains all the images of a finite set of nonnegative integers $S$ under the action of any number of integer-valued affine functions taken from the set
Klarner studied the particular case when all slopes $n_i$ are equal to some integer $n\geqslant 2$ and noted that for $m=n$ the (upper) density
$$
\begin{equation*}
\delta(\langle F : S \rangle)=\lim\sup_{T\to \infty} \frac{\langle F : S \rangle\cap\{0,\dots, T\}}{T+1}
\end{equation*}
\notag
$$
is equal to $0$ if and only if the set $F$ satisfies a nontrivial semigroup relation, that is,
for some $u_1,\dots, u_p,v_1,\dots, v_q\in \{1,\dots,m\}$ such that $(u_1,\dots, u_p)\ne (v_1,\dots, v_s)$.
The decision problem in which, for an input set $F$, one needs to answer whether or not a relation of the form (3) exists, is known as the freeness problem for a semigroup.2[x]2This problem is known to be undecidable for integer upper-triangular $3\times 3$ matrices (see [17] and [1]), and it is still open for integer affine functions, which can be represented by $2\times 2$ upper-triangular matrices.
Klarner noted that if all slopes in (2) are equal to $n$, the inequality $m>n$ implies that there exists a relation of type (3); for unequal slopes this was generalized in [16] and [18]. The important subcase $m=n$ was considered separately, but for its solution the reader was referred to a preprint which has never appeared. However, it was noted that the freeness can be obtained if the set
is a complete residue system modulo $n$, where $d = \gcd(a_2 - a_1, \dots, a_m - a_1)$. As we will see in § 4, in the case of a prime number $n=m$ freeness and this condition on residues are actually equivalent.
The uniqueness problem for a number system and the freeness problem for a set of integer-valued affine functions of the same slope can be related by means of the following observation.
Proposition 1. Let $F=\{f_i(x)=nx+a_i \mid i=1,\dots,m\}$ be the set of affine functions such that $n,a_2,\dots,a_m \in \mathbb{N}$, $n\geqslant 2$ and $a_1=0$. Then the $n$-ary system $A=\{a_1,\dots,a_m\}$ has the uniqueness property if and only if the set $F$ is a free semigroup basis.
Proof. Suppose first that there is a semigroup relation (3). A straightforward computation shows that
$$
\begin{equation*}
f_{u_1}\circ \dots\circ f_{u_p}=n^p x + c=f_{v_1}\circ \dots\circ f_{v_q}=n^q x + d,
\end{equation*}
\notag
$$
Since $c=d$, from (4), we obtain two distinct $A$-expansions of the same number.
Assume that there exist two tuples $(a_{u_1},\dots, a_{u_p})$ and $(a_{v_1},\dots, a_{v_q})$ giving $A$-expansions of the same number $c=d$ in (4). Without loss of generality we suppose $p\geqslant q$ and consider $S=f^{(p-q)}_{1}=n^{p-q}x$. Then we immediately obtain that
and $L=R$ is a nontrivial semigroup relation since $a_{u_p}\ne 0$ by condition (1).
The proposition is proved.
The restriction $a_1=0$ in the statement of Proposition 1 is actually slightly artificial, and it can be bypassed by using the following tool.
Proposition 2. Let $F=\{f_i(x)=nx+a_i \mid i=1,\dots,m\}$ be a set of affine functions such that $n,a_1,a_2,\dots,a_m \in \mathbb{Z}$ and $n\geqslant 2$. Then for any $s\in \mathbb{Z}$ the set $F$ is a free semigroup basis if and only if the set $F=\{\widetilde{f}_i(x)=nx+(a_i-s) \mid i=1,\dots,m\}$ is a free semigroup basis.
Proof. For the function $g(x)=x-c$ we have $g^{-1}\circ f_i \circ g=nx+(a_i-cn+c)$. We take $c=s/(n-1)$; then $g^{-1}\circ f_i \circ g=\widetilde{f}_i$. Consequently, the existence of a group relation
Propositions 1 and 2, in combination with Theorem 2 in § 3, provide an algorithm to check freeness for the set $F$ in the case $m=n$, which was missing from Klarner’s considerations. If $n$ is a prime number, the freeness check for the set $F$ (and for the density $\delta(\langle F:S \rangle$) to be positive) can be done much easier by use of Theorem 4 in § 4.
§ 2. Subdivision scheme and transition operator
Subdivision schemes are iterative algorithms for the linear approximation of functions from their values on a mesh. They originated in the late 1980s with Dyn, Levin, Gregory, De Boor, Dubuc and other authors: see [2], [7] and [8] for many references. They are widely used for the interpolation and approximation of smooth functions and in modelling curves and surfaces. Their applications to combinatorics and number theory are also known: see [10], [20], [26] and [27]. In [28] refinement schemes were applied to the problem of the representation of numbers in a binary number system with an arbitrary set of digits. Some special cases of subdivisions appeared previously in works by de Rham [4], [5] (the cutting angle scheme), Chaikin [3], Micchelli and Prautzsch [23] and other authors. We consider only stationary univariate schemes defined by an integer contraction factor $n\geqslant 2$ and a sequence of real numbers with finite support $\{c_i\}_{i\in \mathbb{Z}}$. After a suitable shift of numbering we can assume that $c_i = 0$ for all $i\notin \{0, \dots, N\}$ and $c_0c_N \ne 0$. We denote by $l_{\infty}$ the space of bounded sequences $\{x_k\}_{k\in \mathbb{Z}}$ and by $\delta \in l_{\infty}$ the sequence $(\delta )_k = \delta_{0k}$ (Kronecker symbol).
The subdivision operator $S\colon l_{\infty} \to l_{\infty}$ acts on $l_{\infty}$ as follows:
where $g = (g_i)_{i \in \mathbb Z} \in l_{\infty}$. Furthermore, we consider the transition operator $T$ on the space of tempered distributions with compact support $\mathcal{S}_0'$:
The proof can be found, for example, in [2] or verified by direct computation. The following theorem is well known [24].
Theorem A. Assume that $\sum_k c_k = n$. Then for every $f \in \mathcal{S}_0'$ such that $(f,\boldsymbol{1}) = 1$ the sequence $T^jf$ converges in $\mathcal{S}'$ to the unique solution $\varphi \in \mathcal{S}_0'$ of the functional equation
such that $(\varphi, \boldsymbol{1}) = 1$ This solution has support on the interval $[0,N]$ and satisfies the equation $T\varphi = \varphi$.
Of course, we could have dropped the normalization condition $(f,\boldsymbol{1}) = 1$ and obtain by homogeneity the following: for every $f\in \mathcal{S}_0'$ the sequence $T^jf$ converges to $(f, \boldsymbol{1})\, \varphi$. The function $\varphi$ is called a refinable function in the literature, and equation (8) is called a refinement equation.
With every refinement equation we associate the trigonometric polynomial
$$
\begin{equation*}
{\boldsymbol c}(\xi) = \frac1n \sum_{k \in \mathbb Z} c_k e^{-2\pi i k \xi},
\end{equation*}
\notag
$$
called its mask. This is the characteristic function of the sequence $\{c_k\}_{k\in \mathbb{Z}}$. Computing the Fourier transforms of both parts of the refinement equation gives us the following equation in the frequency domain:
Now we focus on the case of nonnegative coefficients $c_k$. Some of the results below are known [25]; we give their proofs for the convenience of the reader. The following simple observation was made independently in a number of papers: see [6], [7], [25] and [29].
Lemma 1. If all the $c_k$ are nonnegative, then $\varphi$ is a Borel measure of pure type, namely it is either absolutely continuous (that is, $\varphi \in L_1$) or purely singular.
Proof. Choosing $f=\chi_{[0,1]}$, we see that all functions $T^jf$ are nonnegative, hence so is their limit. Thus, $\varphi$ is a nonnegative distribution, that is, a Borel measure.
According to Lebesgue’s theorem, there exists a unique representation of $\varphi$ as a sum of absolutely continuous and singular measures: $\varphi = \varphi_{\mathrm{cont}} + \varphi_{\mathrm{sing}}$. Uniqueness implies that both $\varphi_{\mathrm{cont}}$ and $\varphi_{\mathrm{sing}}$ satisfy the refinement equation (8). However, this equation possesses a unique solution up to normalization. Therefore, one of these functions is zero.
The lemma is proved.
Lemma 1 rises the question of separating the cases of absolute continuity and singularity of the measure $\varphi$. The following criterion is proved by using (10) and Poisson’s summation formula.
Proposition 3. Suppose all the $c_k$ are nonnegative; then $\varphi \in L_1$ if and only if $\widehat \varphi (m) = 0$ for all integers ${m\ne 0}$. Moreover, in this case $\varphi(t) \leqslant 1$ almost everywhere.
Proof.Necessity. Assume that there exists $m\in \mathbb{Z}\setminus \{0\}$ such that $\widehat \varphi (m) \ne 0$. Taking an arbitrary integer $j\in \mathbb{N}$ and substituting $\xi = n^jm$ into (10) we obtain
The latter equality holds because all numbers $n^{j-s}m$, $s=1, \dots, j$, are integers, and therefore $ {\boldsymbol c} (n^{j-s}m ) = {\boldsymbol c}(0) = 1$. Thus, $\widehat \varphi(n^jm) = \widehat \varphi (m)$ for all $j\in \mathbb{N}$. On the other hand, if $\varphi \in L_1(\mathbb{R})$, then $\widehat{\varphi}(\xi) \to 0$ as $\xi\to \infty$. This is not true for $\xi = n^jm$ where $j\to \infty$, hence $\varphi \notin L_1$.
Sufficiency. If $\widehat\varphi(m) = \delta_{m0}$, then applying Poisson’s summation formula to the function $\varphi (t-\cdot\,)$ we obtain
Thus, $\sum_{k\in \mathbb{Z}} \varphi (t - k) = \boldsymbol{1}$. Since $\varphi\geqslant 0$, we see that $\varphi \leqslant \boldsymbol{1}$, that is, for every nonnegative test function $f\in \mathcal{S}$ we have
Hence $\varphi$ is majorized by the Lebesgue measure, and therefore $\varphi\in L_1$.
The proposition is proved.
The criterion of Proposition 3 has a disadvantage: it involves the function $\widehat \varphi$, which is a priori unknown. A criterion in terms of the coefficients $\{c_k\}_{k\in \mathbb{Z}}$ exploits the $n$-ary tree. We define the tree $\mathcal{T}$ as follows. The root is associated with zero and has ${n-1}$ children with indices $k/n$, $k = 1, \dots, n-1$. The further construction is by induction: every vertex $\alpha$, apart from the root, has the $n$ children $(\alpha + k)/n$, $k = 0, \dots, n-1$. The root has level zero, its children form the first level, and so on. Thus, the $j$th root consists of $(n-1)n^{j-1}$ numbers $n^{-j}k$, $k = 1, \dots, n^{j}-1$, ${k\not\equiv 0\pmod{n}}$.
A subset $\mathcal{A}$ of vertices of $\mathcal{T}$ is called a minimal cut set if every infinite path from the root along the tree (paths are without backtracking and the root is not in a path) has a unique common vertex with $\mathcal{A}$. All minimal cut sets are finite. The simplest one is the set of vertices of the first level, $\mathcal{A}=\{{1}/{n}, \dots, (n-1)/{n}\}$.
Proposition 4. Suppose all the $c_k$ are nonnegative; then $\varphi \in L_1$ if and only if there exists a minimal cut set of the $n$-ary tree $\mathcal{T}$ that consists of zeros of the mask $\boldsymbol{c}$.
Proof.Necessity. Since $\varphi$ has a compact support, it follows from the Paley–Wiener theorem that $\widehat \varphi$ is an entire function. Therefore, it has finitely many zeros, if any, on the unit disc. This implies that there exists $j\geqslant 1$ such that $\widehat \varphi $ does not have zeros on the $j$th level of $\mathcal{T}$, that is, $\boldsymbol{c}(n^{-j}m)\ne 0$ for every natural number $m < n^j$, $m\not\equiv 0\pmod{n}$. Let $m = \sum_{k=0}^j d_kn^k =d_j \dots d_0$ be the standard $n$-adic expansion of $m$, possibly starting with zeros, such that $d_0 \ne 0$. We add the digit $d_{j+1} = 0$ and substitute $\xi = m$ into equation (10). Then we obtain
Since $\widehat \varphi(m) = 0$ and $\widehat \varphi(n^{-j}m) \ne 0$, we see that one of the numbers $n^{q-j}m =0.d_{j-q}\dots d_0$ must be a zero of $\boldsymbol{c}$. These numbers form a finite path of length $j$. Thus, every path of length $j$ contains a zero of the polynomial $\boldsymbol{c}$.
Sufficiency. Assume that there exists a minimal cut set $\mathcal{A} \subset \mathcal{T}$ such that $\boldsymbol{c}(\mathcal{A}) = 0$. Then taking an arbitrary natural number $m$ and applying formula (12) we obtain $\widehat \varphi(m) =0$, which completes the proof for positive $m$. The proof for negative $m$ is the same.
The proposition is proved.
§ 3. Criterion of uniqueness for a number system
Now we consider a set of digits $A = \{a_1, \dots, a_n\}$ for a (nonstandard) $n$-ary number system. We assume that $0 = a_1 < \dots < a_n$. For any integer $k \geqslant 0$ we denote by $b(k)$ the total number of its $A$-expansions having the form (1) and set formally $b(k)=0$ for any integer $k<0$.
The unique expansion property means that $b(k) \leqslant 1$ for all $k\in\mathbb{Z}$. We are going to see if the sequence $\{b(k)\}_{k\in\mathbb{Z}}$ is generated by the subdivision operator $S$ with the following coefficients:
$$
\begin{equation}
c_i =\begin{cases} 1, & i \in A, \\ 0 & \text{otherwise}. \end{cases}
\end{equation}
\tag{13}
$$
This sequence will be referred to as the indicator sequence of $A$. We start with the following simple observation.
Lemma 2. The sequence $b(k)$ satisfies the following recurrence relations:
Proof. In the expansion (1) for $k=nq+d$, the digit $\alpha_0 \in A$ must satisfy $\alpha_0 \equiv d\pmod{n}$, hence $\alpha_0 =ns + d$ for some $s$. Subtracting $d$ from both sides of (1) and dividing by $n$, we obtain $q-s = \sum_{j} \alpha_j n^{j-1}$, provided that $ns + d \in A$, that is, $\alpha_{ns + d} = 1$. Thus, the total number of expansions of the integer $nq+d$ is equal to the sum of the numbers of expansions of $q-s$ over all $s$ such that $\alpha_{ns + d} =1$. This completes the proof.
If we set $k=nq+d$ and $i=q-s$, then equation (14) becomes
The right-hand side is precisely the subdivision operator (5). Thus, we obtain the following result.
Corollary. Let $\boldsymbol{b}^{(j)} \in l_{\infty}$ be the sequence $\{b(k)\}_{k=0}^{n^j-1}$ complemented by zeros for $k < 1$ and $k \geqslant n^j$. Then $\boldsymbol{b}^{(j)} =S\boldsymbol{b}^{(j-1)}$.
where $S$ is the subdivision operator defined by the indicator sequence of $A$.
Thus, the sequence $\boldsymbol{b}^{(j)}$ defined in the corollary coincides with the sequence $S^j\delta$.
Proof of Theorem 1. We argue by induction on $j$. For $j=0$ we have $b(0) = 1$ and $(S^0\delta)_0 = (\delta)_0 = 1$, so the required result is true. The transition $j-1\mapsto j$ is provided by the corollary.
The theorem is proved.
Now we formulate the fundamental result. Let $\{c_k\}_{k\in \mathbb{Z}}$ be the indicator sequence of $A$, $\boldsymbol{c}(\,\cdot\,)$ be the mask of this sequence and $\mathcal{T}$ be the $n$-ary tree.
Theorem 2. The following assertions are equivalent:
Proof. The equivalence of (b) and (c) follows from Proposition 4. Let us prove the equivalence of (a) and (b).
(a) $\Rightarrow$ (b). Assume the contrary: property (a) holds, that is, $b(k) \leqslant 1$, $k\in \mathbb{Z}$, but $\varphi \notin L_1$. This means that $\varphi$ is a purely singular Borel measure (Lemma 1). Consider the transition operator $[Tf](t)=\sum_{i=1}^n \varphi(nt - a_i)$ and take $f=\chi_{[0,1]}$. By equation (7) we have
On the other hand $T^jf\to \varphi$ by Theorem A. Convergence is in $\mathcal{S}'$, which, for nonnegative distributions, means convergence in measure. Applying now Theorem 1 we obtain $(S^j\delta)_k=b(k)$ for all $k\leqslant n^j-1$. Since for $k$ ranging from zero to $n^j-1$ the intervals $[n^{-j}k, n^{-j}(k+1)]$ cover $[0,1]$, we conclude that the restriction of the function $\sum_{k\in \mathbb Z} (S^j\delta )_k \chi_{[n^{-j}k, n^{-j}(k+1)]}$ to the interval $[0,1]$ is equal to
By Proposition 1 the function $\varphi$ is of pure type, hence the assumption $\varphi \notin L_1$ implies that $\varphi$ is purely singular. So its restriction to $[0,1]$ is purely singular too. On the other hand, if $b(x)\leqslant 1$ for all $b(k)$, then the function on the right-hand side of (17) does not exceed one, and neither does its limit $\varphi\bigl|_{[0,1]}$. Thus the function $\varphi\bigl|_{[0,1]}$ is majorized by the Lebesgue measure and is not purely singular.
(b) $\Rightarrow$ (a). Assume that there is an integer with at least two $A$-expansions, the longest of which contains $r$ digits. Let $A_r = \bigl\{\sum_{j=0}^{r-1} \alpha_jn^j,\,\alpha_j\in A,\, j \leqslant r\bigr\}$. Since $a_1=0$, the set $A_r$ contains all $A$-presentable numbers of length at most $r$. Hence at least two elements of $A_r$ coincide, so we have $|A_r| < n^r$. Consider the $r$th power of the transition operator:
where $b_r(k)$ is the total number of $A$-expansions of the integer $k$ with at most $r$ digits. Clearly, $T^r\varphi=\varphi$, hence the refinement equation with the transition operator $T^r$ possesses the same solution $\varphi$. By Hutchinson’s theorem [13] there exists a unique compact set $Q\subset \mathbb{R}$ such that
Since $n^{-r}|A_r| < 1$, it follows that $\mu(Q) = 0$. On the other hand $T^r$ preserves the set of Borel measures with support on $Q$. Taking an arbitrary measure $\psi$ of this type normalized by the condition $(\psi,\boldsymbol{1})=1$ and applying Theorem A we obtain
Remark 1. Now we see that Theorem 2, in combination with Proposition 1 and Proposition 2, provides an algorithm to check freeness for a set $F=\{f_i=n x+ a_i, i=1,\dots,n\}$, where $n,a_1,\dots,a_n \in \mathbb{Z}$ and $n\geqslant 2$. Indeed, the degree of the trigonometric polynomial $\sum_{k=1}^n e^{-2\pi i a_k t}$ is bounded above, and so is the cardinality of the set of its zeros on $[0,1]$. Thus, the possible minimal cut sets of the $n$-ary tree in Theorem 2 also have a bounded size, which in it turn bounds the height of possible tree vertices in the minimal cut. It follows that the check of all such vertices can be done by means of their finite enumeration and the calculation of a polynomial at the corresponding points.
§ 4. Uniqueness of the expansion and digits residues
In this section we use the criterion from Theorem 2 to study the uniqueness property for the $n$-ary number system consisting of precisely $n$ digits. Again, let $A=\{a_1, \dots, a_n\}$ be a set of nonnegative digits such that $0\leqslant a_1 < \dots < a_n$. We say that the $n$-ary number system $A$ is irreducible if
If $k$ has at least one such representation, we say that $k$ is a representable number.
We say that the $n$-ary number system $A$ has the weak uniqueness property if two different $A$-expansions of the same length represent different numbers. The following statement is useful for working with sets of digits that contain only positive numbers.
Proposition 5. Let $A=\{a_1,\dots,a_m\}$ be a set of digits such that $0<a_1<a_2<\dots<a_m$. Then the $n$-ary system $A$ has the weak uniqueness property if and only if the $n$-ary system $B=\{0, a_2-a_1,\dots, a_m-a_1\}$ has the uniqueness property.
Proof. We prove by contradiction in both directions. First, if $A$ does not have the weak uniqueness property, then there exist two tuples $U=(u_0,u_1,\dots,u_s)$ and $V=(v_0,v_1,\dots,v_s)$ in $A^s$ such that
which gives us two distinct tuples $U'$ and $V'$ in $B^p$. By removing the most significant digits until they are distinct from zero, we obtain two tuples refuting the uniqueness property of the system $B$.
Now suppose that the $n$-ary system $B$ does not have the uniqueness property and there exists $U=(u_0,u_1,\dots,u_s)\in B^s$ and $V=(v_0,v_1,\dots,v_t)\in B^t$ such that
They represent the same number in the system $A$, obtained from (21) by adding $a_0(1+n+\dots +a^s)$.
The proposition is proved.
Now we are ready to prove two results on how the uniqueness property of the $n$-ary system with $n$ digits is related to their residues modulo $n$.
Theorem 3. Let $n$ be a composite number. Then there exists an irreducible set $A$ consisting of $n$ nonnegative digits such that the $n$-ary number system $A$ possesses the uniqueness property, but $A$ contains two numbers congruent modulo $n$.
Proof. Since $n$ is a composite number, there exist integers $n_1$ and $n_2$, both greater than $1$, such that $n = n_1 n_2$. We construct the following set of digits
$$
\begin{equation}
A=\{un_1n + v\colon 0\leqslant u < n_2,\,0\leqslant v < n_1\}.
\end{equation}
\tag{22}
$$
As $n_1>1$, taking $u=0$ we obtain the digits $a_1 = 0$ and $a_2 = 1$, so condition (19) holds. Since $n_1$ divides $un_1n$ and $0\leqslant v<n_1$ in (22), no digit can be congruent to $n_1$ modulo $n$. Hence the digits do not form a complete system of residues modulo $n$.
From (22) it follows that no digits $a$ and $a'$ can satisfy the congruence $a - a'\equiv un_1\pmod n$ for $1\leqslant u < n_2$. Then, considering the difference of two expansions of type (20) modulo $n$ we see that if $y$ and $y'$ are representable numbers, then we also have
$$
\begin{equation}
y-y'\not\equiv un_1 \pmod n \quad\text{when } 1\leqslant u < n_2.
\end{equation}
\tag{23}
$$
Now we prove that a positive integer has at most one expansion of type (20). Assume the contrary, and let $x$ be the least positive integer having at least two expansions
Then the last digits $\alpha_0$ and $\alpha'_0$ must be distinct: otherwise the number $(x - \alpha_0)/n$ also has two distinct expansions, but this contradicts the assumption of minimality for $x$ selected. Hence $\alpha_0\neq \alpha'_0$. Without loss of generality we assume that $\alpha_0 < \alpha'_0$. Then we have
and $y>y'$ are some representable numbers. Thus, $\alpha'_0-\alpha_0=n(y-y')$, hence
$$
\begin{equation}
\alpha'_0-\alpha_0 \equiv 0\pmod n.
\end{equation}
\tag{24}
$$
If the digits $\alpha'_0$ and $\alpha_0$ were formed in $A$ as $\alpha'_0=u_1n_1n+v_1$ and $\alpha'=u_2n_1n+v_2$, then from (24) we obtain $v_1=v_2$, hence $\alpha'_0-\alpha_0 = (u_2-u_1) n_1n$. Therefore, $y-y'=(u_2-u_1)n_1$, where $1\leqslant u_2-u_1 < n_2$, which contradicts (23). This proves the uniqueness of the expansion.
Theorem 4. For an arbitrary prime number $p$ the following holds: an irreducible $p$-ary number system $A$ has a uniqueness property if and only if the set $A$ does not contain two integers congruent modulo $p$.
Proof. Sufficiency is straightforward (see, for example, [22], Theorem 4), so we prove necessity.
Let $a_1 < \dots < a_p$ be an irreducible set of nonnegative digits such that every number has at most one representation in base $p$ with digits $a_1, \dots, a_p$. We show that in this case $a_1, \dots, a_p$ form a complete system of residues modulo $p$. To do this we use Theorem 2. For any tuple $\boldsymbol{c} = (c_1,\dots,c_p)\in\mathbb{Z}_{\geqslant 0}^p$ we define the polynomial $P_{\boldsymbol c} (z)=\sum_{j=1}^p z^{c_j}$. For $m\in\mathbb{N}$ a complex number $z$ is a primitive $p^m$th root of unity if $z^{p^m} = 1$, but $z^{p^{m-1}}\neq 1$. Set $\boldsymbol{a} = (a_1,\dots,a_p)$ and $\boldsymbol{b}=(0,a_2-a_1,\dots,a_p-a_1)$. From Proposition 5 we can see that the uniqueness property of the $n$-ary system $A$ implies uniqueness for the system $B=\{0,a_2-a_1,\dots,a_p-a_1\}$, to which we can apply Theorem 2. The implication (a) $\Rightarrow$ (c) in Theorem 2 shows that some zero of the polynomial $P_{\boldsymbol{b}}$ is a primitive $p^m$th root of unity for some $m\in\mathbb{N}$, from which it follows that for some $m$ all primitive $p^m$th roots of unity are zeros of $P_{\boldsymbol{b}}$. Since $P_{\boldsymbol{a}}=e^{-2\pi i a_0}P_{\boldsymbol{b}}$, the same is true for the polynomial $P_{\boldsymbol{a}}$. This suffices for our purposes.
Recall that $z$ is a $p^m$th primitive root of unity if and only if it is a zero of the cyclotomic polynomial
Next we observe that for all $a,\widetilde a\in\mathbb{Z}_+$ such that $a\geqslant\widetilde a$ and $a\equiv\widetilde a\ (\bmod\ p^m)$ the polynomial $z^a - z^{\widetilde a}$ is divisible by $z^{p^m}-1$, which is in its turn divisible by $Q$. Hence all primitive $p^m$th roots of unity are zeros of $z^a - z^{\widetilde a}$. For any $j=1,\dots,p$ we choose $\widetilde a_j$ such that $0 \leqslant \widetilde a_j < p^m$ and $\widetilde a_j\equiv a_j\pmod{p^m}$. Set $\widetilde P(z)=\sum_{j=1}^p z^{\widetilde a_j}$. Then primitive $p^m$th roots of unity are zeros of $\widetilde P$. This implies that $ \widetilde P = QR,$ where $R$ is an integral polynomial of degree $<p^{m-1}$. Moreover, all coefficients of $R$ are nonnegative. We have $\widetilde P(1) = Q(1) = p$. Hence $R(1) =1$ and $R(z) = z^u$ for some $u$ satisfying $0\leqslant u<p^{m-1}$.
If $m=1$, then $R(z) = 1$ and $\widetilde P(z) = \sum_{j=0}^{p-1} z^j$. We see that the multiset $\{\widetilde a_1,\dots,\widetilde a_p\}$ is actually the set $\{0,\dots,p-1\}$. This means that $a_1, \dots, a_p $ form a complete system of residues modulo $p$ as required.
Let $m>1$. Then all numbers $\widetilde a_j$ are congruent to $u$ modulo $p^{m-1}$. Consequently, all numbers $a_j$ are also congruent to $u$ modulo $p^{m-1}$. This does not agree with the irreducibility of the set $\{a_1, \dots, a_p\}$.
First, we order the set $A=\{a_1,\dots,a_n\}$ in increasing order and compute $d=\gcd(a_2-a_1, \dots, a_p-a_1)$. Then the set $\{0,(a_2-a_1)/d,\dots,(a_p-a_1)/d\}$ is an irreducible $p$-ary number system, and we are left to check whether all of its elements are distinct modulo $p$. Here the admissibility of scaling the coefficients by $d$ can be proved similarly to the admissibility of the shift in Proposition 2, by use of the conjugating function $g(x)=dx$.
Bibliography
1.
J. Cassaigne, T. Harju and J. Karhumäki, “On the undecidability of freeness of matrix semigroups”, Internat. J. Algebra Comput., 9:3–4 (1999), 295–305
2.
A. S. Cavaretta, W. Dahmen and C. A. Micchelli, Stationary subdivision, Mem. Amer. Math. Soc., 93, no. 453, Amer. Math. Soc., Providence, RI, 1991, vi+186 pp.
3.
G. M. Chaikin, “An algorithm for high-speed curve generation”, Comput. Graphics and Image Processing, 3:4 (1974), 346–349
4.
G. de Rham, “Sur une courbe plane”, J. Math. Pures Appl. (9), 35 (1956), 25–42
5.
G. de Rham, “Sur les courbes limites de polygones obtenus par trisection”, Enseign. Math. (2), 5 (1959), 29–43
6.
G. A. Derfel', “Probabilistic method for a class of functional-differential equations”, Ukrainian Math. J., 41:10 (1989), 1137–1141
7.
N. Dyn, J. A. Gregory and D. Levin, “Analysis of uniform binary subdivision schemes for curve design”, Constr. Approx., 7:2 (1991), 127–147
8.
N. Dyn and D. Levin, “Subdivision schemes in geometric modelling”, Acta Numer., 11 (2002), 73–144
9.
P. Erdős and R. L. Graham, Old and new problems and results in combinatorial number theory, Monogr. Enseign. Math., 28, Univ. de Genève, Enseignement Math., Geneva, 1980, 128 pp.
10.
De-Jun Feng and N. Sidorov, “Growth rate for beta-expansions”, Monatsh. Math., 162:1 (2011), 41–60
11.
J. Honkala, “Unique representation in number systems and $L$ codes”, Discrete Appl. Math., 4:3 (1982), 229–232
12.
J. Honkala, “On number systems with finite degree of ambiguity”, Inform. and Comput., 145:1 (1998), 51–63
13.
J. E. Hutchinson, “Fractals and self-similarity”, Indiana Univ. Math. J., 30:5 (1981), 713–747
14.
J. Jankauskas and J. M. Thuswaldner, “Rational matrix digit systems”, Linear Multilinear Algebra, 71:10 (2023), 1606–1639
15.
D. A. Klarner, “An algorithm to determine when certain sets have $0$-density”, J. Algorithms, 2:1 (1981), 31–43
16.
D. A. Klarner, “A sufficient condition for certain semigroups to be free”, J. Algebra, 74:1 (1982), 140–148
17.
D. A. Klarner, J.-C. Birget and W. Satterfield, “On the undecidability of the freeness of integer matrix semigroups”, Internat. J. Algebra Comput., 1:2 (1991), 223–226
18.
A. Kolpakov and A. Talambutsa, “On free semigroups of affine maps on the real line”, Proc. Amer. Math. Soc., 150:6 (2022), 2301–2307
19.
J. C. Lagarias, “Erdős, Klarner, and the $3x+1$ problem”, Amer. Math. Monthly, 123:8 (2016), 753–776
20.
J. C. Lagarias and Yang Wang, “Integral self-affine tiles in $\mathbb R^n$. I. Standard and nonstandard digit sets”, J. London Math. Soc. (2), 54:1 (1996), 161–179
21.
Jian-Lin Li, “Digit sets of integral self-affine tiles with prime determinant”, Studia Math., 177:2 (2006), 183–194
22.
H. A. Maurer, A. Salomaa and D. Wood, “$\mathrm L$ codes and number systems”, Theoret. Comput. Sci., 22:3 (1983), 331–346
23.
C. A. Micchelli and H. Prautzsch, “Uniform refinement of curves”, Linear Algebra Appl., 114/115 (1989), 841–870
24.
I. Ya. Novikov, V. Yu. Protasov and M. A. Skopina, Wavelet theory, Transl. Math. Monogr., 239, Amer. Math. Soc., Providence, RI, 2011, xiv+506 pp.
25.
V. Protasov, “Refinement equations with nonnegative coefficients”, J. Fourier Anal. Appl., 6:1 (2000), 55–78
26.
V. Yu. Protasov, “Asymptotic behaviour of the partition function”, Sb. Math., 191:3 (2000), 381–414
27.
V. Yu. Protasov, “On the asymptotics of the binary partition function”, Math. Notes, 76:1 (2004), 144–149
28.
V. Yu. Protasov, “The Euler binary partition function and subdivision schemes”, Math. Comp., 86:305 (2017), 1499–1524
29.
O. K. Zakusilo, “Some properties of the class $L_o$ of limit distributions”, Theory Probab. Math. Stat., 15 (1978), 67–72
Citation:
S. V. Konyagin, V. Yu. Protasov, A. L. Talambutsa, “Unique expansions in number systems via refinement equations”, Sb. Math., 216:11 (2025), 1614–1627