2018-10-10 22:03:03 +00:00
|
|
|
---
|
|
|
|
id: 5900f4311000cf542c50ff43
|
2021-02-06 04:42:36 +00:00
|
|
|
title: 'Problem 195: Inscribed circles of triangles with one angle of 60 degrees'
|
2018-10-10 22:03:03 +00:00
|
|
|
challengeType: 5
|
2021-02-06 04:42:36 +00:00
|
|
|
forumTopicId: 301833
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: problem-195-inscribed-circles-of-triangles-with-one-angle-of-60-degrees
|
2018-10-10 22:03:03 +00:00
|
|
|
---
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
# --description--
|
2018-10-10 22:03:03 +00:00
|
|
|
|
2021-02-06 04:42:36 +00:00
|
|
|
Let's call an integer sided triangle with exactly one angle of 60 degrees a 60-degree triangle.
|
2018-10-10 22:03:03 +00:00
|
|
|
|
2021-02-06 04:42:36 +00:00
|
|
|
Let r be the radius of the inscribed circle of such a 60-degree triangle.
|
|
|
|
|
|
|
|
There are 1234 60-degree triangles for which r ≤ 100.
|
|
|
|
|
|
|
|
Let T(n) be the number of 60-degree triangles for which r ≤ n, so
|
|
|
|
|
|
|
|
T(100) = 1234, T(1000) = 22767, and T(10000) = 359912.
|
|
|
|
|
|
|
|
Find T(1053779).
|
2018-10-10 22:03:03 +00:00
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
# --hints--
|
2018-10-10 22:03:03 +00:00
|
|
|
|
2021-02-06 04:42:36 +00:00
|
|
|
`euler195()` should return 75085391.
|
2018-10-10 22:03:03 +00:00
|
|
|
|
|
|
|
```js
|
2020-12-16 07:37:30 +00:00
|
|
|
assert.strictEqual(euler195(), 75085391);
|
2018-10-10 22:03:03 +00:00
|
|
|
```
|
|
|
|
|
2021-01-13 02:31:00 +00:00
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```js
|
|
|
|
function euler195() {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
euler195();
|
|
|
|
```
|
|
|
|
|
2020-12-16 07:37:30 +00:00
|
|
|
# --solutions--
|
2020-08-13 15:24:35 +00:00
|
|
|
|
2021-01-13 02:31:00 +00:00
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|