Find the number of triples (a, b, c) of positive integers, such that 1 <= a, b, c <= 100 and a^2 + b^2 + c^2 = ab + ac + 4bc.
There are 270 triples.