post a tutorial on pithagorean triplets

if i am given a number how i find other two members of pithagorean triplet efficiently please post a tutorial including this.thanks

if given numbers as 1 or 2 then there is no solution after that u can use the property of Pythagorian triplets :
if n is odd



if n is even



if u can print any triplet which includes n.this should help.

1 Like

thanks @mahipalsaran for helping me out