|
EXAMPLE
|
a(2)=29 because there are 29 primitive Pythagorean hypotenuses which are {5, 10, 13, 17, 20, 25, 26, 29, 34, 37, 40, 41, 45, 50, 52, 53, 58, 61, 65, 68, 73, 74, 80, 82, 85, 89, 90, 97, 100}
|
|
MATHEMATICA
|
hyp = Union[ Flatten[ Table[ m^2 + n^2, {n, 2, 100000}, {m, n - 1}]]]; Table[ Length[ Select[ hyp, #<=10^n &]], {n, 8}]
|