Skip to main content

2021 AMC 12A Problem 8

Problem 8 of 25EasierAlgebraNumber Theory

A sequence of numbers is defined by D0=0,D_0 = 0, D1=0,D_1 = 0, D2=1,D_2 = 1, and Dn=Dn1+Dn3D_n = D_{n-1} + D_{n-3} for n3.n \ge 3. What are the parities (evenness or oddness) of the triple of numbers (D2021,D2022,D2023),(D_{2021}, D_{2022}, D_{2023}), where EE denotes even and OO denotes odd?

Answer choices

Show solution

Solution

Working modulo 2,2, the terms D0,D1,D2,D_0, D_1, D_2, \ldots have parities E,E, E,E, O,O, O,O, O,O, E,E, O,O, E,E, E,E, O,O, O,O, O,O, E,E, O,O, \ldots which repeat with period 77 starting from D0D_0 (indeed D7,D8,D9D_7, D_8, D_9 have the same parities E,E,OE, E, O as D0,D1,D2D_0, D_1, D_2). Since 20215,2021 \equiv 5, 20226,2022 \equiv 6, and 20230(mod7),2023 \equiv 0 \pmod 7, the parities match those of D5,D6,D0,D_5, D_6, D_0, namely E,O,E.E, O, E. Thus, the correct answer is C.

More practice

Concepts: parity · recursion · pattern recognition

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.