Maths Olympiad Prep

Library / /148 of 860

Number theory Difficulty 4.9 AIME Find the answer

Determine the number of integers 2n20162 \leq n \leq 2016 such that nn1n^{n}-1 is divisible by 2,3,5,72,3,5,7.

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

Solution

Only n1(mod210)n \equiv 1(\bmod 210) work. Proof: we require gcd(n,210)=1\operatorname{gcd}(n, 210)=1. Note that p7\forall p \leq 7 the order of nn (modp)(\bmod p) divides p1p-1, hence is relatively prime to any p7p \leq 7. So nn1(modp)n1(modp)n^{n} \equiv 1(\bmod p) \Longleftrightarrow n \equiv 1(\bmod p) for each of these pp.

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.