MathCastle
Counting & ProbabilityHardAdvanced Number Theory

Advanced Number Theory · Hard problem

A fair 2020-sided die, with faces numbered 11 through 2020, is rolled three times. Find the number of outcomes (ordered sequences of the three rolls) for which the three numbers rolled, in some order, form a Pythagorean triple – that is, can be labeled a,b,ca,b,c with a2+b2=c2a^2+b^2=c^2.