In 1991 G. Marsaglia and A. Zaman [MZ] introduced a new class of pseudo-random number sequences. The shift register analogs of these have been investigated by A. Klapper and M. Goresky in several papers (see [GK1], for example).
The general idea is very simple. Let
be any
integer and let
be positive integers with no
factors in common with
or each other.
If you take any
rational number
then the coefficients
in the
-adic expansion
are eventually periodic. Like decimal expansions and unlike power series expansions, the coefficients are NOT in general unique (for example, in the case
whose coefficients are
The coefficients in the
-adic expansion of
are very easy to determine from the following
algorithm:
as a power series in
For a proof, see [GK2].