2017 AIME I Problems/Problem 7
Problem 7
For nonnegative integers
and
with
, let
. Let
denote the sum of all
, where
and
are nonnegative integers with
. Find the remainder when
is divided by
.
Solution
Let
, and note that
. The problem thus asks for the sum
over all
such that
. Consider an array of 18 dots, with 3 columns of 6 dots each. The desired expression counts the total number of ways to select 6 dots by considering each column separately. However, this must be equal to
. Therefore, the answer is
.