Skip to main content
OlympiadHQ

Browse · MathNet

Print

The Twenty-fifth Hong Kong (China) Mathematical Olympiad

Hong Kong number theory

Problem

Find the period of the repetend of the fraction using binary numbers, i.e. its binary decimal representation.

(Note: When a proper fraction is expressed as a decimal number (of any base), either the decimal number terminates after finite steps, or it is of the form Here the repeated sequence is called the repetend of the fraction, and the smallest length of the repetend, , is called the period of the decimal number.)
Solution
Note that in lowest term. Let in binary decimal representation, where is its repetend and is its period. We can write and for some integers and . Thus, Note that (2) is equivalent to (1). Therefore, it remains to find the smallest positive integer such that (2) holds for some satisfying and . As , we must have and . Since the orders of 2 modulo 7 and 17 are 3 and 8 respectively, we have and . Therefore, the smallest possible is 24. Indeed, we can take , and , so that (2) is satisfied. This shows the period is 24.
Final answer
24

Techniques

Multiplicative orderFactorization techniquesSums and products