Four points with integer coordinates are selected: , , and , with and .
Point , also with integer coordinates, is chosen on the line so that the three triangles , and are all similarHave equal angles.
It is easy to prove that the three triangles can be similar, only if .
So, given that , we are looking for triplets such that at least one point (with integer coordinates) exists on , making the three triangles , and all similar.
For example, if , it can be easily verified that point satisfies the above condition.
Note that the triplets and are considered as distinct, although point is common for both.
If , there are distinct triplets such that point exists.
If , there are distinct triplets such that point exists.
If , how many distinct triplets are there such that point exists?
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.