allen inmo class 1 part 2 pending
Q3. S3. Example: p = 5 1 + 1/4 + 1/2 + 1/3 = 5/4 + 5/6 = 5(1/4 + 1/6) = 5(5/12) works. So we simply paired the fractions cleverly. Can be done for any prime to achieve one factor of p. But we need 2 factors of p. What about the other factor? Let S = 1/1 + 1/2 ... 1/(p-1) Also write it in revers and add: 2S = 1 + 1/p-1 + 1/2 + 1/p-2 ... 1/p-1 + 1 = p [1/(p-1) + 1/2.(p-2) + 1/3.(p-3) .. 1/(p-1)] If the inner sum gives us a factor of 'p' we are done. Read up on modular multiplicative inverse . Here for each fraction it exists mod p. And it's simply a permutation of 1,2,3...p-1 Taking mod p: 1/p-1 + 1/2*-2 + 1/3*-3 .. = -[1/1^2 + 1/2^2 + 1/3^2 .. + 1/(p-1)^2] Since their inverses are a permutation of the same numbers, the sum is equal to: -[1^2 + 2^2 + 3^2 .... (p-1)^2] Which is sum of first n squares and has a factor of 'p'. Hence proved.