🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2023 Math Kangaroo

Problem 23

Problem 23 · 2023 Math Kangaroo Stretch
Algebra & Patterns

Starting with the four numbers 2, 0, 2, 3 the kangaroo-machine creates numbers according to the following rule: the next number is always the smallest non-negative integer that is different from the four directly previous numbers. Which number is in position 2023?

Show answer
Answer: C — 2
Show hints
Hint 1 of 2
Generate a few terms: the next number is the smallest non-negative integer not among the last four.
Still stuck? Show hint 2 →
Hint 2 of 2
After a short start the sequence becomes periodic — find the period and reduce 2023.
Show solution
Approach: find the eventual period
  1. Starting 2, 0, 2, 3 the rule gives 1, 4, 0, 2, 3, 1, 4, 0, 2, 3, …
  2. From the 5th term on it cycles with period 5: 1, 4, 0, 2, 3.
  3. Position 2023 is (2023 − 5) = 2018 steps past the cycle start; 2018 mod 5 = 3.
  4. That lands on the 4th cycle value, which is 2.
Mark: · log in to save