About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
June 2024 - Solution
June 2024 Solution:
A solution for both parts is
A = 15780182746062370108602577733859373821827076136375073529796834518989107000489444222482943168070296 B = 5022988173858530362046589594815862687165616836922409678904106986969714780309239151669666891661530 C = 16560331448791934658922466325941893817186620274329261880232738682297512949234184663822339667675754
A generally useful approach for finding rational approximations of numbers is using continued fractions. Given the infinite continued fraction form of a number, one can obtain rational approximations from its convergents - the rational numbers obtained by taking a finite prefix of the continued fraction and computing it. The approximations obtained this way are the best approximations possible for fractions with denominator which is smaller or equal to the one in the approximation.
However, using the continued fraction approach on would not yield approximations that are also a part of a Pythagorean triple. To ensure we have such a triple, we use Euclid's method (from "Elements" book X, proposition 29): given two integers,
we can generate a triple by