The error is that, for example, the side with five nuts means that it is four segments long, not five, because of where the nuts are placed (nuts at the endpoint of the lines). The triangle is a 2-3-4 in this image, which is impossible because that is not a right triangle.