Maths Olympiad Prep

Track / Stage 3 / 52 of 260 #52 of 1964

Problem 52

AMC 10/12, early questions
Number theory Difficulty 3.2 Find the answer fermat

There are FF fractions mn\frac{m}{n} with the properties: mm and nn are positive integers with m<nm<n, mn\frac{m}{n} is in lowest terms, nn is not divisible by the square of any integer larger than 1, and the shortest sequence of consecutive digits that repeats consecutively and indefinitely in the decimal equivalent of mn\frac{m}{n} has length 6. We define G=F+pG=F+p, where the integer FF has pp digits. What is the sum of the squares of the digits of GG?

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Official solution

We start with 1111109 fractions, as above, and want to remove all of the fractions in U,VU, V and WW. Since each fraction in WW is in UU and VV, it is enough to remove those UU and VV only. The total number of fractions in UU and VV (that is, in UVU \cup V) equals the number of fractions in UU plus the number of fractions in VV minus the number of fractions in their overlap (that is, in UV=W)U \cap V=W). This is because any fraction in the overlap is "counted twice" when include all fractions in UU and all fractions in VV. Therefore, we need to remove 1009+329291009+329-29 fractions from the set of 1111109. Therefore, FF, the number of fractions having the desired properties, is F=1111109(1009+32929)=1109700F=1111109-(1009+329-29)=1109700. Since FF has 7 digits, then G=F+7=1109707G=F+7=1109707. The sum of the squares of the digits of GG is 12+12+02+92+72+02+72=1+1+81+49+49=1811^{2}+1^{2}+0^{2}+9^{2}+7^{2}+0^{2}+7^{2}=1+1+81+49+49=181.

Source: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.