← RoseCode

ROSECODE 527

1-2-3 type Pythagorean triangles

C_K_Yang · Math ·

An integer-sided triangle is a 1-2-3 type Pythagorean triangle if its three sides a,b,c satisfy the condition : 1×a2+2×b2=3×c2

For example, A triangle with three sides {5,13,11} is a 1-2-3 type Pythagorean triangle because 1×52+2×132=3×112

Find all distinct 1-2-3 type Pythagorean triangles with perimeter 25000000

Answer format: count,perimeter

You are given: 595,315428 for a threshold of 1000