Maths Olympiad Prep

Library / /269 of 860

Number theory Difficulty 5.0 AIME, harder Find the answer

Define ϕ!(n)\phi^{!}(n) as the product of all positive integers less than or equal to nn and relatively prime to nn. Compute the remainder when 2n50gcd(n,50)=1ϕ!(n) \sum_{\substack{2 \leq n \leq 50 \\ \operatorname{gcd}(n, 50)=1}} \phi^{!}(n) is divided by 50 .

A number or a short expression. Spacing and $ signs are ignored.

Solution

First, ϕ!(n)\phi^{!}(n) is even for all odd nn, so it vanishes modulo 2 . To compute the remainder modulo 25 , we first evaluate ϕ!(3)+ϕ!(7)+ϕ!(9)2+54+5312\phi^{!}(3)+\phi^{!}(7)+\phi^{!}(9) \equiv 2+5 \cdot 4+5 \cdot 3 \equiv 12 (mod25)(\bmod 25). Now, for n11n \geq 11 the contribution modulo 25 vanishes as long as 5n5 \nmid n. We conclude the answer is 12 .

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: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.