If you like this kind of thing, have a look at Project Euler, especially problem 143, "Torricelli Triangles".
https://projecteuler.net/problem=143