{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
How many ways are there to paint each of the integers $2,3,\dots,10$ red, green, or blue so that each number has a different color from each of its proper divisors?
$2,4,8$ each divide the next, so they get three different colors: $3!=6$ ways.
$3$ has $3$ choices and $9$ then has $2$. $6$ must differ from $2$ and $3$: $2$ choices if $3$ has the color of $2$, otherwise ($2$ ways for $3$) $1$ choice. So $3,6,9$ give $(2+2)\cdot2=8$ ways.
$7$ has $3$ choices. $10$ must differ from $2$ and $5$: if $5$ has the color of $2$, then $10$ has $2$ choices; otherwise ($2$ choices for $5$) $10$ has $1$ choice: $2+2=4$ ways for $5,10$.