{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
How many integers between $1000$ and $9999$, inclusive, have the property that some permutation of their digits is a multiple of $11$ between $1000$ and $9999$? For example, $1012$ has this property, because $1210=11\cdot110$.
\emph{When does it work?} The number $\overline{abcd}$ is a multiple of $11$ exactly when $(a+c)-(b+d)$ is a multiple of $11$. Each pair sum is between $0$ and $18$, so the difference must be $0$ or $\pm11$. So a number has the property exactly when its four digits can be split into two pairs whose sums are \emph{equal} or \emph{differ by $11$}. (The pair containing a nonzero digit goes in the first and third places with that digit first, so there is no leading zero.) For example, $1012$: pairs $\{1,1\}$ and $\{0,2\}$ have equal sums, giving $1210$.
\emph{How many numbers per digit set?} A set of digits gives this many four-digit numbers (no leading zero): $4$ different digits, no $0$: $24$; $4$ different digits with a $0$: $24-6=18$; pattern $\{a,a,b,c\}$, no $0$: $12$; $\{0,0,b,c\}$: $6$; $\{a,a,0,c\}$: $9$; $\{a,a,b,b\}$, no $0$: $6$; $\{0,0,b,b\}$: $3$; $\{a,a,a,a\}$: $1$.
\emph{Repeated digits.}
$\{a,a,a,a\}$: always works: $9$ numbers.
$\{a,a,a,b\}$ with $b\ne a$: the splits give $2a$ vs.\ $a+b$, never equal and never $11$ apart. None.
$\{a,a,b,b\}$: split $\{a,b\},\{a,b\}$ always works: $\binom92\cdot6=216$ numbers without $0$, and $9\cdot3=27$ with $0$.
$\{a,a,b,c\}$ ($a,b,c$ different): the only useful split is $\{a,a\},\{b,c\}$, so we need $b+c=2a$ or $b+c=2a\pm11$. Without $0$: $b+c=2a$ gives $0+1+2+3+4+3+2+1+0=16$ sets ($a=1,\dots,9$); $b+c=2a-11$ gives $1+2+3=6$ ($a=7,8,9$); $b+c=2a+11$ gives $3+2+1=6$ ($a=1,2,3$). That is $28$ sets, $28\cdot12=336$ numbers. With $a=0$: $b+c=11$, $4$ sets, $4\cdot6=24$ numbers. With $b=0$: $c=2a$ ($a=1,2,3,4$) or $c=2a-11$ ($a=6,7,8,9$), $8$ sets, $8\cdot9=72$ numbers.
\emph{Four different digits, no $0$.} Write the set as two pairs. Equal sums: if $p(s)$ pairs from $1,\dots,9$ have sum $s$, any two of them form a set, giving $\sum\binom{p(s)}2$; for $s=3,\dots,17$, $p(s)=1,1,2,2,3,3,4,4,4,3,3,2,2,1,1$, so there are $1+1+3+3+6+6+6+3+3+1+1=34$ sets. Sums $11$ apart: sums $(3,14)$, $(4,15)$, $(5,16)$, $(6,17)$ give $2$ sets each, such as $\{1,2\}\cup\{5,9\}$: $8$ sets. (No set is counted twice: the total digit sum is even in the first case and odd in the second.) So $42$ sets, $42\cdot24=1008$ numbers.
\emph{Four different digits with a $0$}, say $\{0,x,y,z\}$: we need $x=y+z$ or $y+z=x+11$. The first gives $1+1+2+2+3+3+4=16$ sets ($x=3,\dots,9$), and the second $3+3+2+2+1+1=12$ sets ($x=1,\dots,6$). So $28$ sets, $28\cdot18=504$ numbers.