2018-09-30 22:01:58 +00:00
---
id: 5900f4e11000cf542c50fff4
title: 'Problem 373: Circumscribed Circles'
2020-11-27 18:02:05 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 302035
2021-01-13 02:31:00 +00:00
dashedName: problem-373-circumscribed-circles
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2021-07-29 19:48:17 +00:00
Every triangle has a circumscribed circle that goes through the three vertices. Consider all integer sided triangles for which the radius of the circumscribed circle is integral as well.
2018-09-30 22:01:58 +00:00
2021-07-29 19:48:17 +00:00
Let $S(n)$ be the sum of the radii of the circumscribed circles of all such triangles for which the radius does not exceed $n$.
2018-09-30 22:01:58 +00:00
2021-07-29 19:48:17 +00:00
$S(100) = 4\\,950$ and $S(1\\,200) = 1\\,653\\,605$.
2018-09-30 22:01:58 +00:00
2021-07-29 19:48:17 +00:00
Find $S({10}^7)$.
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
# --hints--
2018-09-30 22:01:58 +00:00
2021-07-29 19:48:17 +00:00
`circumscribedCircles()` should return `727227472448913` .
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
2021-07-29 19:48:17 +00:00
assert.strictEqual(circumscribedCircles(), 727227472448913);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```js
2021-07-29 19:48:17 +00:00
function circumscribedCircles() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
2021-07-29 19:48:17 +00:00
circumscribedCircles();
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
```js
// solution required
```