SOLUTION. In this problem, we fix a+b=m and c+d=n. Let x=ab and y=cd then
abc+bcd+cda+dab−271−27176abcd=my+nx−271−27176xy=f(x,y)
is a linear (convex) function in both x and y. It only reaches the maximum at boundary values, namely
maxf(x,y)=f(α,β);α∈{0,4m2};β∈{0,4n2}
If α=4m2 and β=4n2, we have a=b,c=d. In this case, the problem becomes
2(a2c+c2a)≤271+27176a2c2
for all non-negative real numbers a,c and a+c=21. This inequality is equivalent to
176a2c2+1≥27ac
which is obviously true since ac≤161. The equality holds for a=b=c=d=41. Otherwise, if α=4m2 and β=4n2, we must have mn=0 or abcd=0. WLOG, assume that d=0, the inequality becomes abc≤271 if a+b+c=1. This follows immediately from AM-GM inequality and attains equality for a=b=c=31. We are done.