Difference between revisions of "2023 SSMO Team Round Problems/Problem 4"

(Created page with "==Problem== Find the sum of values for prime <math>p</math> such that <math>p \mid (2023^{p^2}+(p-1)!+2^{p^4}).</math> ==Solution==")
 
 
Line 3: Line 3:
  
 
==Solution==
 
==Solution==
 +
 +
We have that <math>\varphi(p) = p - 1</math>, so by Fermat’s Little Theorem,
 +
<cmath>a^p \equiv a \pmod{p}.</cmath>
 +
 +
Thus,
 +
<cmath>2023^{p^2} + 2^{p^4} \equiv 2023 + 2 \equiv 2024 \pmod{p}.</cmath>
 +
 +
In other words, <math>p \mid 2024</math>. The prime divisors of 2024 are <math>2</math>, <math>11</math>, and <math>23</math>, so the answer is
 +
<cmath>2 + 11 + 23 = \boxed{36}.</cmath>
 +
 +
~SMO_Team

Latest revision as of 21:17, 9 September 2025

Problem

Find the sum of values for prime $p$ such that $p \mid (2023^{p^2}+(p-1)!+2^{p^4}).$

Solution

We have that $\varphi(p) = p - 1$, so by Fermat’s Little Theorem, \[a^p \equiv a \pmod{p}.\]

Thus, \[2023^{p^2} + 2^{p^4} \equiv 2023 + 2 \equiv 2024 \pmod{p}.\]

In other words, $p \mid 2024$. The prime divisors of 2024 are $2$, $11$, and $23$, so the answer is \[2 + 11 + 23 = \boxed{36}.\]

~SMO_Team