USAMO
Guide
Home
Contests
Problemset
Standings
Announcements
…
Back to Problem
1200
Remainder at Five — Editorial
algebra
polynomials
modular arithmetic
Working modulo
x
2
−
x
+
1
x^2 - x + 1
x
2
−
x
+
1
we have
x
2
≡
x
−
1.
x^2 \equiv x - 1.
x
2
≡
x
−
1.
Multiplying by
x
x
x
gives
x
3
≡
x
2
−
x
≡
(
x
−
1
)
−
x
=
−
1.
x^3 \equiv x^2 - x \equiv (x-1) - x = -1.
x
3
≡
x
2
−
x
≡
(
x
−
1
)
−
x
=
−
1.
Thus
x
2026
=
(
x
3
)
675
⋅
x
≡
(
−
1
)
675
x
=
−
x
,
x^{2026} = (x^3)^{675} \cdot x \equiv (-1)^{675} x = -x,
x
2026
=
(
x
3
)
675
⋅
x
≡
(
−
1
)
675
x
=
−
x
,
so
x
2026
+
1
≡
1
−
x
.
x^{2026} + 1 \equiv 1 - x.
x
2026
+
1
≡
1
−
x
.
The remainder is
R
(
x
)
=
1
−
x
,
R(x) = 1 - x,
R
(
x
)
=
1
−
x
,
and
R
(
5
)
=
1
−
5
=
−
4.
R(5) = 1 - 5 = -4.
R
(
5
)
=
1
−
5
=
−
4.