The sum of x integers from 1 to x is given by \(\frac{x * (x+1) }{ 2}\)
So we can translate the question as - "
For how many values of x from 1 to 300, inclusive, is \(\frac{x * (x+1) }{ 2}\) divisible by 3"
OR
"
For how many values of x from 1 to 300, inclusive, is \(\frac{x * (x+1) }{ (2 * 3)}\) is an integer"
Simplifying further we finally visualize the question as,
For how many values of x from 1 to 300, inclusive, is \(\frac{x * (x+1) }{ 6}\) is an integerThe information is a bit more manageable to work with
Let's proceed -
For \(\frac{x * (x+1) }{ 6}\) to be an integer, one of the following should be true -
Case 1 - x is a multiple of 6
Case 2 - (x+1) is a multiple of 6
Case 3 - Neither x nor (x+1) is a multiple of 6, but the product is multiple.
When can this happen ?
For ex. 2 and 3. Neither 2 is a multiple of 6, nor is 3. But (2*3) is a multiple of 6.
Solving these cases -
Case 1 x is a multiple of 6Between 1 to 300, there are
50 numbers which are multiple of 6
Case 2 (x+1) is a multiple of 6Between 1 to 301, there are
50 numbers which are multiple of 6
Case 3 Neither x nor (x+1) is a multiple of 6, but the product is multiple. Note: For the product to be multiple of the number, the product of remainder when x is divided by 6 and when (x+1) is divided by 6 should be a multiple.
Taking the same example -
2 is not a multiple of 6; Remainder when 2 is divide by 6 = 2.
3 is not a multiple of 6; Remainder when 3 is divide by 6 = 3
Now the product of the remainders (2 * 3) is a multiple of (via the Remainder theorem)
There can just be two combinations when the product of remainders of x and x+1 is divisible by 6 while x and (x+1) are not.
x = 2 & (x+1) = 3
OR x = 3 & (x+1) = 4
Hence x can be represented as
x = 6 * (some factor) + 2
OR x = 6 * (some factor) + 3
Therefore the number of possible values satisfying this condition will be same for both.
Assume, x = 6 * (some factor) + 2
= \(\frac{300 - 2 }{ 6}\) + 1
=
50Similarly for x = 6 * (some factor) + 3
=
50Total possible values of x = (Case 1) + (Case 2) + (Case 3)
Total possible values of x = (50) + (50) + (50 + 50) = 200
IMO - E