Find a and b from 152 + a2 = b2.
8,17
m2 - 1, 2m, m2 + 1 form a Pythagorean triplet
As the given number (15) is odd, it can't be of the form 2m.
m2 - 1 = 15
m2 = 16 → 16 is a perfect square.
So, m = 4
2m = 2 x 4 = 8
m2 + 1 = 42 + 1 = 16 + 1 = 17
So, a = 8
and b = 17