Take a test Sign in 中文
← Exercise 550 →
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 550
The first $100$ positive integers are each written in base $2$. How many of these base-$2$ representations are palindromes?
← Back to Problem 550
Solution
  1. $100=1100100_2$. Palindromes with $1,\dots,6$ binary digits: $1,1,2,2,4,4$, total $14$.
  2. Seven-digit palindromes have the form $1abcba1$. Those with $a=0$ are less than $1100100_2$: $4$ of them. With $a=1,b=0$: $110c011$, and only $c=0$ gives a number $\le1100100_2$. With $a=b=1$ the number is too big.
  3. Total: $14+4+1=\boxed{19}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year