{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
Let $A = \{1, 2, 3, 4, 5, 6\}$, and let $N$ be the number of functions $f$ from set $A$ to set $A$ such that $f(f(x))$ is a constant function. Find the remainder when $N$ is divided by $1000$.
Let $c$ be the constant value ($6$ choices); then $f(c)=c$.
Choose the nonempty set $S$ of the other elements with $f(x)=c$ ($k$ elements), and map the remaining $5-k$ elements into $S$, giving $\sum_{k=1}^5\binom5kk^{5-k}=196$.