Take a test Sign in 中文
← Exercise 575 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 575
Consider polynomials $P(x)$ of degree at most $3$, each of whose coefficients is an element of $\{0,1,2,\dots,9\}$. How many such polynomials satisfy $P(-1)=-5$?
← Back to Problem 575
Solution
  1. With $P(x)=ax^3+bx^2+cx+d$ we need $a+c=b+d+5$. Put $b'=9-b$, $d'=9-d$: then $a+b'+c+d'=23$ with all variables in $\{0,\dots,9\}$.
  2. Replacing each variable $v$ by $9-v$, this is the same as counting solutions of $u_1+u_2+u_3+u_4=36-23=13$ with $0\le u_i\le9$.
  3. Without the upper bound there are $\binom{16}3=560$ solutions. A solution with $u_i\ge10$ corresponds to a solution of $u_1+\dots+u_4=3$, and there are $\binom63=20$ of these for each $i$. Two variables cannot both be $\ge10$.
  4. So the count is $560-4\cdot20=\boxed{480}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year