Decimal preperiod 2026-10-14
The shortest prefix before the repeating tail of a decimal representation. For a reduced fraction with denominator , where is coprime to ten, its length is ; the tail length is given by decimal period from multiplicative order.
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 4 8E ii Solution Created 2026-09-24 Updated 2026-10-14
The Fermat-Euler theorem states that, for a positive integer and an integer coprime to , , where the Euler totient function counts residue classes coprime to . The case is trivial. For , let be a reduced residue system. Multiplication by permutes it: equality of two resulting residues can be cancelled using the modular inverse of , and the products remain coprime to . Multiplying the residues before and after the permutation givesEvery factor on the right is a unit, so its product can be cancelled. This provesThe integer is prime: none of the primes up to divides it. Therefore . Apply the theorem to and use the supplied congruence:To connect this to individual digits rather than merely assert periodicity, use long-division remainders andInduction gives . Since is coprime to , no remainder is zero. The congruence above therefore implies for every , using the unique representative in . In particularHenceThis is the mechanism of decimal period from multiplicative order: the period divides .
Past exam of the mathematics course of the University of Cambridge 2007 ia Paper 5 12 ii Solution Created 2026-09-24 Updated 2026-10-14
The Fermat-Euler theorem states that for integers and with ,where Euler's totient function counts the residue classes coprime to . The case is trivial. For , list a reduced residue system . Multiplication by permutes these classes: each is coprime to , and implies since has a multiplicative inverse modulo . Multiplying the permuted residues givesThe product is itself coprime to and can be cancelled using its inverse, proving the theorem.
The integer 359 is prime: none of the primes , all the primes not exceeding , divides it. Therefore and 60 is coprime to 359. Using the supplied congruence and the Fermat-Euler theorem,Now express the decimal expansion by long division. Put and for defineThus , and none of these remainders is zero. The congruence implies ; since both are the unique representatives between zero and 358, they are equal. A digit is determined by the preceding remainder, namely , soThis proves the required pure periodicity from the first digit. In fact its least period is 179: the multiplicative order of 10 modulo 359 divides the prime 179 and is not one, since . The connection between the remainder recurrence and the period is the decimal period from multiplicative order.
Terminating decimal 2026-10-14
A decimal representation with only finitely many nonzero fractional digits. A reduced fraction has this property exactly when its denominator has no prime factors other than two and five. The zero tail is distinguished from the genuine repeating block measured by decimal period from multiplicative order.