>>147
a < b+c = n-a
(n/3) ≦ a < (n/2)
0 < c ≦ (n-a)/2