MathDB
randomly remove 2012 numbers from decimal number 1/p, after the comma

Source: Danube 2012 junior p2

July 22, 2019
number theorydecimal representationdecimalcoprime

Problem Statement

Consider the natural number prime p,p>5p, p> 5. From the decimal number 1p\frac1p, randomly remove 20122012 numbers, after the comma. Show that the remaining number can be represented as ab\frac{a}{b} , where aa and bb are coprime numbers , and bb is multiple of pp.