We can get Pythagorean triplets by using general form 2m,m2−1,m2+1
Let m2−1=8
So m2=8+1=9
Which gives m = 3
Therefore, 2m = 6 and m2+1=10
The triplet we get 6, 8, 10 but 8 is not the smallest number.
Now let 2m = 8
Therefore, m2−1=16−1=15
m2+16+1=17
the triple is 8, 15, 17 with 8 as the smallest number.