Not able to understand it
Pythagoras Triplet
Hey @agarg11 In this question you have to give a pair of number which will form pythagoras triplet with the input Number i.e. it x^2 + y^2 = z^2 x,y,z can be any one of the three numbers.Just to give you hint there is a direct formula which can give you the remaining two numbers of the Pythagorean triplet with the given number.If you are still not able to understand then we can initiate a live chat.
@agarg11 For easiness I have given you the formula below to calculate the triplet.
if input number is even : pair will be[ (a^2/4)-1(,a^2/4)+1]
if it is odd : [ (a^2/2)-1(,a^2+1)/2]
can u explain me hpw this formula is come?
Hey @agarg11 It came by solving some equations related to Pythagoras theorem.Please have a look at below link.
Hey @agarg11 since there is no reply from you for a while.I am marking this doubt as resolved.If you still have any doubt reopen it.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.