Take a test Sign in 中文
← Exercise 564 →
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 564
Let $K$ be the number of sequences $A_1,\dots,A_n$ with $1\le n\le7$, each $A_i\subseteq\{1,2,\dots,7\}$, and $A_{i-1}\subseteq A_i$ for $2\le i\le n$. What is the remainder when $K$ is divided by $7$?
← Back to Problem 564
Solution
  1. A sequence of length $n$ is determined by choosing, for each element of $\{1,\dots,7\}$, the first index at which it enters the sets ($1,\dots,n$) or that it never enters: $(n+1)^7$ sequences.
  2. So $K=\sum_{n=1}^{7}(n+1)^7=\sum_{m=2}^8m^7$.
  3. By Fermat's little theorem, $m^7\equiv m\pmod 7$ for every integer $m$. (Directly: modulo $7$, $2^3\equiv1$ gives $2^7\equiv2$, and $3^3\equiv-1$ gives $3^7\equiv3\cdot(-1)^2=3$; the others are similar.)
  4. So $K\equiv2+3+\cdots+8=35\equiv0\pmod7$, and the remainder is $\boxed{0}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year