Abstract
Numbers do exist, independently of the way we represent them, of the way we write them. And there are many ways to write them: integers as finite sequence of digits once a base is fixed, rational numbers as a pair of integer or as an ultimately periodic infinite sequence of digits, or reals as an infinite sequence of digits but also as a continued fraction, just to quote a few. Operations on numbers are defined, independently of the way they are computed. But when they are computed they amounts to be algorithms that work on the representations of numbers.
Here, numbers will be represented by their development in a base, hence by words over an alphabet of digits and the algorithms we shall consider are those that can be performed by finite state machines, that is, by the simplest machines one can think of. Which operations can be thus defined? which set of numbers can be thus described? how this is related to the chosen base? how the choice of the alphabet of digits may influence the way the operations may be computed? These are the questions that will be asked and, hopefully and to a certain extent, answered in this conference.
We shall begin with the example of divisibility by a given integer in a given base p, the generalization — due to Blaise Pascal — of the casting out nines and, more seriously, with the beautiful Cobham’s Theorem [1,2,3]. This result leads to the distinction between recognizable and p-recognizable sets of integers that generalizes to set of tuples of integers and sets the problem of the decidability of the former among the latter, answered positively by Honkala, Muchnik and Leroux [4,5,6].
Another obvious appearance of finite automata, of finite transducers indeed, in the processing of written numbers occurs when signed digits are used, as has been popularized in the field of computer arithmetics by Avizienis for instance [7]. In this framework arises the interesting problem of the trade-off between the redundancy of a number system and the “compexity” of the operations performed on numbers written in that system.
The next case that will retain our attention is the one of non standard number systems; here, a non integer real β is taken as a base and the (real) numbers are written in this base. We put into correspondance the so-called arithmetic properties of β — that is, which kind of algebraic integer β is — the rationality of the set of expansions in such a base and the possibility of defining a linear recurrence that yields a system for representing the integers (cf. [8, Ch. VII]). A striking result is the fact that the addition is realized by a finite transducer if, and only if, β is a Pisot number [9,10]. In all these systems, the algorithm for computing the expansions is the greedy algorithm and produces the most significant digit first.
In a last part we shall touch on a more recent topic: rational base number systems (cf. [11]). In these systems, every integer has a unique finite expansion, which is not computed by a greedy algorithm but by a right to left algorithm, that is, by an algorithm which computes the least significant digit first. The set of all expansions is not a rational language, a very intriguing set of words indeed, but a finite transducer exists which converts a representation written on any alphabet of digits into a representation of the same number written on the canonical alphabet.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Cobham, A.: On the base-dependance of the sets of numbers recognizable by finite automata. Math. Systems Theory 3, 186–192 (1969)
Eilenberg, S.: Automata, Languages and Machines, vol. A. Academic Press, London (1974)
Bruyère, V., Hansel, G., Michaux, Ch., Villemaire, R.: Logic and p-recognizable sets of integers. Bull. Belg. Soc. Math. 1, 191–238 (1994)
Honkala, J.: A decision method for the recognizability of sets defined by number systems. RAIRO Informatique Théor. 20, 395–403 (1986)
Muchnik, A.: The definable criterion for definability in Presburger arithmetic and its applications. Theoret. Computer Sci. 290, 1433–1444 (2003) Late publication in a journal of a preprint (in russian) issued in 1991
Leroux, J.: A polynomial time Presburger criterion and synthesis for number decision diagrams. In: LICS 2005. Logic in Computer Science 2005, pp. 147–156. IEEE Computer Society Press, Los Alamitos (2005) (New version at arXiv:cs/0612037v1)
Avizienis, A.: Signed-digit number representations for fast parallel arithmetic. IRE Transactions on electronic computers 10, 389–400 (1961)
Lothaire, M.: Algebraic Combinatorics on Words. Cambridge University Press, Cambridge (2002)
Frougny, Ch.: Representation of numbers and finite automata. Math. Systems Theory 25, 37–60 (1992)
Berend, D., Frougny, Ch.: Computability by finite automata and Pisot bases. Math. Systems Theory 27, 275–282 (1994)
Akiyama, S., Frougny, Ch., Sakarovitch, J.: Powers of rationals modulo 1 and rational base number systems. Israël J. Math (to appear)
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 2007 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Sakarovitch, J. (2007). Finite Automata and the Writing of Numbers. In: Harju, T., Karhumäki, J., Lepistö, A. (eds) Developments in Language Theory. DLT 2007. Lecture Notes in Computer Science, vol 4588. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-73208-2_5
Download citation
DOI: https://doi.org/10.1007/978-3-540-73208-2_5
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-73207-5
Online ISBN: 978-3-540-73208-2
eBook Packages: Computer ScienceComputer Science (R0)