non-standard numeration systems
ÉmilieCharlier UniversitélibredeBruxelles
Let's startwithclassical
k
-ary numeration system,k ≥ 2
:n =
`
X
i=0
d
i
k
i
, d
`
6= 0,
rep
k
(n) = d
`
· · · d
0
∈ {0, . . . , k − 1}
∗
A set
X ⊆ N
isk
-recognizable,ifthe languagerep
k
(X) = {rep
k
(x) : x ∈ X}
Examples of
k
-recognizable setsI
Inbase
2
,the evenintegers:rep
2
(2N) = 1{0, 1}
∗
0 ∪ {ε}
I
Inbase2
,the powers of2
:rep
2
({2
i
|i ∈ N}) = 10
∗
I
Inbase
2
,the Thue-Morseset:{n ∈ N : rep
2
(n)
contains aneven numbers of1
s}
I
Givena
k
-automaticsequence(x
n
)
n≥0
over an alphabetΣ
, then, forallσ ∈ Σ
,the set{i ∈ N : x
i
= σ}
isk
-recognizable.Divisibility criteria
If
X ⊆ N
is ultimatelyperiodic,thenX
isk
-recognizable∀k ≥ 2
.X = (3N + 1) ∪ (2N + 2) ∪ {3},
Preperiod= 4,
Period= 6
χ
X
=
|
· · ·
Twointegers
k, ` ≥ 2
aremultiplicativelyindependentifk
m
= `
n
⇒ m = n = 0.
Theorem(Cobham 1969)Let
k, ` ≥ 2
be multiplicativelyindependent integers.Theorem(J. Honkala 1986)
It is decidableif a
k
-recognizableset is ultimatelyperiodic. Sketchof Honkala's decisionprocedure:I
Theinput isaDFAA
X
acceptingrep
k
(X)
.I
Thenumberof statesofA
X
produces an upperbound on the possible(minimal) preperiodand period forX
.I
Consequently, therearenitelymany candidates tocheck.
I
For each pair
(a, p)
ofcandidates, produce aDFAforall possiblecorrespondingultimately periodicsetsand compareit withA
X
.I
Anumeration system(NS) isan increasingsequence of integers
U = (U
n
)
n≥0
such thatI
U
0
= 1
andI
C
U
:= sup
n
≥0
dU
n+1
/U
n
e < +∞
.I
U
islinearifitsatises alinearrecurrence relationover
Z
.I
Letn ∈ N
. Awordw = w
`−1
· · · w
0
overN
representsn
if`−1
X
i=0
w
i
U
i
= n.
I
I
Arepresentation
w = w
`−1
· · · w
0
ofan integeris greedyif∀j,
j−1
X
i=0
w
i
U
i
< U
j
.
I
Inthat case,w ∈ {0, 1, . . . , C
U
− 1}
∗
.I
rep
U
(n)
isthe greedyrepresentationofn
withw
`−1
6= 0
.I
X ⊆ N
isU
-recognizable∆
⇔ rep
U
(X)
is acceptedby anite automaton.I
rep
It is basedon the sequence
F = (F
i
)
i≥0
= (1, 2, 3, 5, 8, 13, . . .)
dened byF
0
= 1, F
1
= 2
andF
i+2
= F
i+1
+ F
i
foralli ≥ 0.
1 1 8 10000 15 100010 2 10 9 10001 16 100100 3 100 10 10010 17 100101 4 101 11 10100 18 101000 5 1000 12 10101 19 101001 6 1001 13 100000 20 101010 7 1010 14 100001 21 1000000 The pattern
11
is forbidden,A
F
= {0, 1}
.The
`
-bonacci numeration system0
1
1
1
0
0
0
I
U
n+`
= U
n+`−1
+ U
n+`−2
+ · · · + U
n
I
U
i
= 2
i
,i ∈ {0, . . . , ` − 1}
I
A
U
accepts allwordsthat do notcontain
1
`
Proposition
Let
U = (U
i
)
i≥0
be aNS s.t.N
isU
-recognizable. Any ultimately periodicX ⊆ N
isU
-recognizableand aDFAacceptingrep
U
(X)
can be obtainedeectively.NB: If
N
isU
-recognizable,thenU
islinear.Periodicityproblem: Given
U
s.t.N
isU
-recognizable and aU
-recognizable setX ⊆ N
. Isitdecidable ifX
is ultimately periodic?Pseudo-result
Let
X
be ultimatelyperiodic withperiodpX
. Any DFAacceptingrep
U
(X)
has atleastf
(
p
X
)
states, wheref
isincreasing.Pseudo-corollary
Let
X ⊆ N
be aU
-recognizable set ofintegerss.t.rep
U
(X)
is accepted by ad
-stateDFA.If
X
isultimatelyperiodicwith periodpX
,thenf
(
p
X
) ≤
d
with(
d
xedf
increasing.lim
i→+∞
U
i+1
− U
i
= +∞.
(1) Mostsystems arebuilt on anexponential sequence
(U
i
)
i≥0
.Lemma
Let
U = (U
i
)
i≥0
be aNS satisfying (1 ). Ifw
isagreedyU
-representation, thenso is10
r
w
Let
N
U
(m)
∈ {1, . . . , m}
denotes the number ofvaluesthat are taken innitelyoftenby the sequence(U
i
mod m)
i≥0
.Example (Zeckendorf system)
(F
i
mod 4) = (1, 2, 3, 1, 0, 1, 1, 2, 3, . . .)
,soN
F
(4) = 4
.(F
i
mod 11) = (1, 2, 3, 5, 8, 2, 10, 1, 0, 1, 1, 2, 3, . . .)
,soN
F
(11) = 7
.If
U = (U
i
)
i≥0
isalinearsystemoforderk
,then,forallm ≥ 2
,we havek
pπ
U
(m) ≤ N
U
(m) ≤ π
U
(m),
Let
U
be aNS satisfying (1). IfX ⊆ N
isan ultimatelyperiodicU
-recognizable set ofperiodp
X
,then any DFAacceptingrep
U
(X)
has atleastN
U
(
pX
)
states.Corollary
Let
U
be aNS satisfying (1). Assumethatlim
m→+∞
N
U
(m) = +∞.
Then the period ofan ultimatelyperiodic set
X ⊆ N
s.t.rep
U
(X)
is accepted by a
d
-stateDFA isbounded by the smallestintegerM
s.t.N
U
(m) >
d
forallm ≥
M
,whichiseectively computable.If
U = (U
i
)
i≥0
satisesa recurrencerelationof the kindU
i+k
= a
1
U
i+k−1
+ · · · + a
k
U
i
,
(2)with
a
k
= ±1
,thenlim
m→+∞
N
U
(m) = +∞
.
Proposition
Let
U = (U
i
)
i≥0
be anincreasingsequence satisfying (2 ). The following assertionsareequivalent:I
lim
m→+∞
N
U
(m) = +∞
;
I
forallprime divisors
p
ofa
k
,lim
v→+∞
N
U
(p
v
) = +∞
Let
Q
U
(x)
denote thecharacteristicpolynomialof the shortest recurrence relationsatised byU
;and letP
U
(x)
= x
k
Q
U
(
1
x
)
, wherek = deg(Q
U
(x))
. Theorem(Bell-C-Fraenkel-Rigo 2009) We haveN
U
(p
v
) → +∞
asv → +∞
ifand only ifP
U
(x) = A(x)B(x)
with
A(x), B(x) ∈ Z[x]
suchthat:I
B(x) ≡ 1 (mod p Z[x])
;
I
A(x)
Theorem(Muchnik 1991)
The ultimateperiodicityproblem isdecidable forallNS with a regularnumerationlanguage,provided thatadditionis recognizable.
Example (
U
i+4
= 3U
i+3
+ 2U
i+2
+ 3U
i
for alli
≥ 0
,(U
0
, U
1
, U
2
, U
3
) = (1, 2, 3, 4)
)Additionisnotcomputable by aniteautomaton (duetoFrougny). Nevertheless,
N
U
(3
v
) → +∞
as
v → +∞
becauseP
U
= 1 − 3x − 2x
2
− 3x
4
Theorem(C-Rigo 2008)
Let
U
be aNS satisfying (1)andX ⊆ N
bean ultimatelyperiodicU
-recognizable set ofperiodpX
. If1
occursinnitelymany times in(U
i
mod
p
X
)
i≥0
thenany DFA acceptingrep
U
(X)
hasatleastpX
states.Theorem(Zeckendorf system)
Let
X ⊆ N
be ultimately periodicwith periodp
X
(and preperioda
X
). Any DFAacceptingrep
F
(X)
has atleastpX
states.I
w
−1
L = {u : wu ∈ L} ↔
statesof minimalautomatonof
L
I
(F
i
mod p
X
)
i≥0
is purelyperiodic.I
Ifi, j ≥ a
X
andi 6≡ j (mod p
X
)
then thereexistst < p
X
s.t. eitheri + t ∈ X
andj + t 6∈ X
,ori + t 6∈ X
andj + t ∈ X
.I
∃n
1
, . . . , n
pX
, ∀t
,
0 ≤ t < p
X
,the words10
n
pX
· · · 10
n
2
10
n
1
0
| rep
F
(p
X
−1)|−| rep
F
(t)|
rep
F
(t)
I
Moreover
n
1
, . . . , n
p
X
canbe chosen s.t.∀j
,1 ≤ j ≤ p
X
,val
F
(10
n
j
· · · 10
n
1
+| rep
F
(pX−1)|
) ≡
j
(mod p
X
)
and
val
F
(10
n
1
+| rep
F
(pX
−1)|
) ≥ a
X
.
I
For
i, j ∈ {1, . . . , p
X
}
,i 6= j
, thewords10
ni
· · · 10
n
1
and
10
nj
· · · 10
n
1
willgenerate dierentstates in theminimalautomaton of
rep
F
(X)
. Thiscan beshown by concatenating someword of length| rep
w
−1
L = {u : wu ∈ L} ↔
states ofminimalautomaton of
L
X
= (11N + 3) ∪ {2}, a
X
= 3, p
X
= 11, | rep
F
(10)| = 5
Workingin(F
i
mod 11)
i≥0
:· · ·
21 1 01 10 28 53 21 10 110 28 53 21 1 0 00 0 00 00 00 1 1 0 00 0 00 00 01 0 00 0 00 00 00 2 1 0 00 0 00 00 10 1+2∈ X
1 0 00 0 00 00 01 0 00 0 00 00 10 2+2∈ X
/
⇒ (
10
5
)
−1
rep
F
(X) 6= (10
9
10
5
)
−1
rep
F
(X)
Forasequence
U = (U
i
)
i≥0
of integers,if(U
i
mod m)
i≥0
is ultimately periodic,wedenote its(minimal) preperiodbyι
U
(m)
.Theorem(C-Rigo 2008)
Let
U = (U
i
)
i≥0
be alinearnumerationsystem. LetX ⊆ N
be ultimately periodic withperiodp
X
and preperioda
X
. Thenany DFAacceptingrep
U
(X)
has atleast| rep
U
(aX
− 1)|
−
ι
U
(p
X
)
states.Theorem(C-Rigo 2008)
It is decidableif a
U
-recognizableset is ultimatelyperiodic for numeration systemsU = (U
i
)
i≥0
s.t.I
N
isU
-recognizable;I
lim
i→+∞
U
i+1
− U
i
= +∞
;I
lim
m→+∞
N
U
(m) = +∞
.Remark
Whenever
gcd(a
1
, . . . , a
k
) = g ≥ 2
, we haveU
i
≡ 0 (mod g
n
)
for all
n ≥ 1
and foralli
large enough;henceN
U
(m) 6→ +∞
.Examples
I
Integerbases:
U
n+1
= k U
n
I
U
n+2
= 2U
n+1
+ 2U
n
Learnmoreaboutlinearrecurrentsequences mod
m
...I
H.T.Engstrom, On sequences denedby linearrecurrence relations,Trans. Amer. Math. Soc. 33(1931).
I
M.Ward, Thecharacteristicnumber ofasequence ofintegers satisfyinga linearrecursion relation, Trans. Amer. Math. Soc. 35 (1933).
I
M.Hall,An isomorphismbetweenlinearrecurringsequences and algebraic rings,Trans. Amer. Math. Soc. 44(1938).
I
Main ideas foranautomata-resolutionofthe periodicity problem:
I
If
X ⊆ N
isultimately periodic,thenthe state complexity of the associated minimalDFAshould grow withthe period and preperiod ofX
.I
Analysethe inner structure ofDFAsaccepting the