Back to Mathematical Olympiad
Difficulty: 4/102024 NMTC 2024 (QII-36)

If is prime number greater than 3, what is the remainder when is divided by 12?

Guide / Hint

Hint 1: Every prime number greater than 3 can only be congruent to or modulo .

Hint 2: Square each of these candidate residues mod 12.

Hint 3: Notice that , , , and .

Solution

Step 1 (Form of primes > 3): Any prime number must be coprime to both 2 and 3.
Therefore, modulo 12, can only be congruent to numbers coprime to 12. The possible residue classes are:

Step 2 (Evaluate p^2 mod 12): We square each of these possible residues:

Step 3 (Conclusion): For all prime numbers , always leaves a remainder of when divided by 12.

Ready to track your progress and master these topics?

Create a free account
    2024 NMTC 2024 QII-36 - Olympiad Math Olympiad Question | Leminno