OFFSET
1,1
LINKS
Wikipedia, Integer Triangle
Wikipedia, Pythagorean Triple.
FORMULA
a(n) = 2 * Sum_{k=1..floor(c(n)/3)} Sum_{i=k..floor((c(n)-k)/2)} sign(floor((i+k)/(c(n)-i-k+1))) * [i^2 + k^2 = (c(n)-i-k)^2] * (c(n)-i-k)^2, where c = A010814. - Wesley Ivan Hurt, May 13 2020
EXAMPLE
a(1) = 50; there is one Pythagorean triangle with perimeter A010814(1) = 12, [3,4,5]. The sum of the areas of the squares on its sides is 3^2 + 4^2 + 5^2 = 9 + 16 + 25 = 50.
a(2) = 200; there is one Pythagorean triangle with perimeter A010814(2) = 24, [6,8,10]. The sum of the areas of the squares on its sides is 6^2 + 8^2 + 10^2 = 36 + 64 + 100 = 200.
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 12 2020
STATUS
approved