Difference between revisions of "2018 AIME I Problems/Problem 1"
Brendanb4321 (talk | contribs) m (→Question) |
|||
Line 1: | Line 1: | ||
− | == | + | ==Problem 1== |
Let <math>S</math> be the number of ordered pairs of integers <math>(a,b)</math> with <math>1 \leq a \leq 100</math> and <math>b \geq 0</math> such that the polynomial <math>x^2+ax+b</math> can be factored into the product of two (not necessarily distinct) linear factors with integer coefficients. Find the remainder when <math>S</math> is divided by <math>1000</math>. | Let <math>S</math> be the number of ordered pairs of integers <math>(a,b)</math> with <math>1 \leq a \leq 100</math> and <math>b \geq 0</math> such that the polynomial <math>x^2+ax+b</math> can be factored into the product of two (not necessarily distinct) linear factors with integer coefficients. Find the remainder when <math>S</math> is divided by <math>1000</math>. | ||
− | |||
==Solution== | ==Solution== |
Revision as of 21:17, 7 March 2018
Problem 1
Let be the number of ordered pairs of integers
with
and
such that the polynomial
can be factored into the product of two (not necessarily distinct) linear factors with integer coefficients. Find the remainder when
is divided by
.
Solution
You let the linear factors be as .
Then, obviously and
.
We know that and
, so
and
both have to be positive.
However, cannot be
, so at least one of
and
must be greater than
, ie positive.
Also, cannot be greater than
, so
must be less than or equal to
.
Essentially, if we plot the solutions, we get a triangle on the coordinate plane with vertices and
. Remember that
does not work, so there is a square with top right corner
.
Note that and
are interchangeable, since they end up as
and
in the end anyways. Thus, we simply draw a line from
to
, designating one of the halves as our solution (since the other side is simply the coordinates flipped).
We note that the pattern from to
is
solutions and from
to
is
solutions, since we can decrease the
-value by
until
for each coordinate.
Adding up gives
This gives us
, and
Thus, the answer is: