🦘 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 15

Problem 15 · 2009 Math Kangaroo Hard
Number Theory last-digitdifference-of-squares

Determine the units digit of the number \(1^2-2^2+\cdots-2008^2+2009^2\).

Show answer
Answer: E — 5
Show hints
Hint 1 of 2
Only the last digit matters, so reduce each square to its units digit first.
Still stuck? Show hint 2 →
Hint 2 of 2
Pair the terms as (2009² − 2008²) + … and use a difference-of-squares shortcut on the units digit.
Show solution
Approach: work modulo 10 with difference of squares
  1. Group from the top: (2009² − 2008²) + (2007² − 2006²) + … + (3² − 2²) + 1².
  2. Each bracket is the sum of two consecutive numbers, and these sums add up so that the units digit settles at 5.
  3. The unit digit is 5.
Mark: · log in to save