Problem:
For a permutation p=(a1β,a2β,β¦,a9β) of the digits 1,2,β¦,9, let s(p) denote the sum of the three 3-digit numbers a1βa2βa3β,a4βa5βa6β, and a7βa8βa9β. Let m be the minimum value of s(p) subject to the condition that the units digit of s(p) is 0. Let n denote the number of permutations p with s(p)=m. Find β£mβnβ£.
Solution:
For any permutation p
s(p)=100(a1β+a4β+a7β)+10(a2β+a5β+a8β)+(a3β+a6β+a9β)
Because the units digit of m is 0, it follows that a3β+a6β+a9β=10 or 20.
If a3β+a6β+a9β=10, then a1β+a4β+a7β+a2β+a5β+a8β=45β10=35, and s(p)=90(a1β+a4β+a7β)+360β₯90(1+2+3)+360=900.
If a3β+a6β+a9β=20, then s(p)=90(a1β+a4β+a7β)+270β₯90β
6+270=810, with equality if and only if {a1β,a4β,a7β}={1,2,3}. The set {a3β,a6β,a9β} must equal {4,7,9},{5,6,9}, or {5,7,8}.
For each {aiβ,ai+3β,ai+6β}, there are 3! ways to permute these numbers. Hence there are n=3β
3!β
3!β
3!=648 permutations p with s(p)=m=810 and β£mβnβ£=β£810β648β£=162β.
The problems on this page are the property of the MAA's American Mathematics Competitions