Maths Olympiad Prep

Library / /165 of 264

Number theory Difficulty 6.1 National Olympiad Prove it Romania

An integer n>1n > 1 will be called p-periodic if 1n\frac{1}{n} is a repeating decimal fraction, whose shortest period has length pp and begins immediately after the decimal point. For instance, 19=0.111\frac{1}{9} = 0.111\dots is 1-periodic and 111=0.090909\frac{1}{11} = 0.090909\dots is 2-periodic.

a) Find all p-periodic numbers nn so that the first digit of the period of 1n\frac{1}{n} is not nil.

b) Find the largest 4-periodic prime.

Solution

a) The first digit of the period is at least 1 if and only if 1n110\frac{1}{n} \ge \frac{1}{10}, that is n10n \le 10. Since the prime factors of nn must be different from 2 and 5, it follows that n{3,7,9}n \in \{3, 7, 9\}; indeed, in this case 13=0,(3)\frac{1}{3} = 0,(3), 17=0,(142857)\frac{1}{7} = 0,(142857) and 19=0,(1)\frac{1}{9} = 0,(1).

b) Let pp be the largest 4-periodic prime; then 1p=m9999\frac{1}{p} = \frac{m}{9999}, with 1m99981 \le m \le 9998. This yields pm=9999=3211101pm = 9999 = 3^2 \cdot 11 \cdot 101. So, the candidate for the largest such prime is p=101p = 101, which is acceptable, because 1101=0,(0099)\frac{1}{101} = 0,(0099).

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.