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

Problem 4

Problem 4 · 2009 Math Kangaroo Easy
Number Theory careful-counting

What is the smallest number of digits that must be removed from the number 12323314 so that the number left over reads the same forwards and backwards?

Show answer
Answer: C — 3
Show hints
Hint 1 of 2
A palindrome reads the same forwards and backwards; keep the longest such block you can.
Still stuck? Show hint 2 →
Hint 2 of 2
Removing digits is fastest when you keep the longest in-order palindrome and delete the rest.
Show solution
Approach: keep longest palindrome, delete the rest
  1. The number is 1 2 3 2 3 3 1 4.
  2. The longest run of digits that stays in order and reads the same both ways has length 5 (for example 1 2 3 2 1).
  3. Eight digits minus that 5 leaves 3 to remove.
  4. Minimum removed = 3 — answer C.
Mark: · log in to save