Distance from a point to a line the perpendicular "R". Draw the vertical line through "P" and label its intersection with the given line "S". At any point "T" on the line, draw a right triangle "TVU" whose sides are horizontal and vertical line segments with hypotenuse "TU" on the given line and horizontal side of length |"B"| (see diagram). The vertical side of ∆"TVU" will have length |"A"| since the line has slope -"A"/"B". ∆"PRS" and ∆"TVU" are similar triangles, since they are both right triangles and ∠"PSR" ≅ ∠"TUV" since they are corresponding angles of a transversal to the parallel lines "PS" and "UV" (both
Integer triangle "c" , "a" + "b" ≤ "c" and "a" ≤ "b" ≤ "c". This is also the number of integer sided obtuse or right (non-acute) triangles with largest side "c". The sequence starting at "c" = 1, is: Consequently, the difference between the two above sequences gives the number of acute integer sided triangles (up to congruence) with given largest side "c". The sequence starting at "c" = 1, is: By Heron's formula, if "T" is the area of a triangle whose sides have lengths "a", "b", and "c" then Since all the terms under the radical on the right