Take a test Sign in 中文
← Exercise 958 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 958
Let $m\ge5$ be an integer not divisible by $2$ or $3$, and let $T(m)$ be the number of triples $(a_1,a_2,a_3)$ of distinct integers with $1\le a_i\le m$ such that $m\mid a_1+a_2+a_3$. There is a polynomial $q(x)=c_2x^2+c_1x+c_0$ with $T(m)=q(m)$ for all such $m$. What is $c_1$?
← Back to Problem 958
Solution
  1. Shifting a triple by $t$ adds $3t$ to the sum, and $3$ is invertible mod $m$, so exactly one of the $m$ shifts has sum $\equiv0$.
  2. So $T(m)=\frac{m(m-1)(m-2)}m=(m-1)(m-2)=m^2-3m+2$.
  3. So $c_1=\boxed{-3}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year