Answer:
The triplets generated are,
(3,4,5), (6,8,10), (8,15,17), (5,12,13), (12,16,20), (7,24,25)
Note: to check which triplet is generated with what value of n, look at solution (e.g, (3,4,5) is generated with n= 1 and n =2 (or p =2,q=1))
Explanation:
To generate the pythagorean triples for the values, we use the following formulas,
a = p^2 - q^2
b = 2pq
c = p^2 + q^2
Where p > q
Now, we have 4 values, 1, 2, 3, 4,
We have to calculate all the combinations, so,
The combinations involving n = 1 are,
Since 1 is the smallest integer, we get,
p = 2, q = 1

the first triplet is, (for p =2 ,q =1) (3,4,5)
p=3, q =1
Again using the formulas to find a,b,c

So for p=3,q=1, the triple is (6,8,10) or (8,6,10)
p = 4 , q = 1

Hence we get the triplet (8,15,17)
for p = 3, q = 2

So, the triplet is (5,12,13)
for p = 4, q = 2,

The triplet is (12,16,20)
Finally,
for p = 4, q = 3

So, the triplet is (7,24,25)