Take a test Sign in 中文
← Exercise 497 →
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 497
For how many ordered triples $(x,y,z)$ of nonnegative integers less than $20$ are there exactly two distinct elements in the set $\{x^2,2^y,z\}$?
← Back to Problem 497
Solution
  1. Exactly two distinct elements means exactly two of $x^2$, $2^y$, $z$ are equal and the third is different. Split into three cases according to which two are equal.
  2. Case $x^2=2^y\ne z$: $x$ must be a power of $2$, so $(x,y)$ is one of $(1,0),(2,2),(4,4),(8,6),(16,8)$, with common value $1,4,16,64,256$. The first three values are less than $20$, so $z$ has $19$ choices; for the last two, $z$ has $20$. That is $3\cdot19+2\cdot20=97$.
  3. Case $x^2=z\ne2^y$: $z=x^2<20$ gives $x=0,1,2,3,4$ and $z=0,1,4,9,16$. Then $y$ must avoid $2^y=z$: $20$ choices when $z=0$ or $9$, and $19$ choices when $z=1,4,16$. That is $2\cdot20+3\cdot19=97$.
  4. Case $2^y=z\ne x^2$: $z=2^y<20$ gives $y=0,1,2,3,4$ and $z=1,2,4,8,16$. Then $x$ must avoid $x^2=z$: $19$ choices when $z=1,4,16$, and $20$ when $z=2,8$. That is $3\cdot19+2\cdot20=97$.
  5. Total: $97+97+97=\boxed{291}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year