ProjectEuler 390 Triangles with non ra - 拼圖

Table of Contents

390. Triangles with non rational sides and integral area

http://projecteuler.net/problem=390


想像一下有個三角形三邊長為 √5 、 √65 、 √68,我們可以算出它的面積為 9 。


S(n)為所有符合三邊長為 √(1+b^2)、√(1+c^2)、√(b^2+c^2)且面積為整數且不超過 n

的三角形面積和(b 和 c 皆為整數)


例子給的三角形就是 b = 2 且 c = 8

已知 S(10^6) = 18018206

請求出 S(10^10)

--

All Comments