Files

45 lines
968 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4e11000cf542c50fff3
title: 'Задача 372: В''язка променів'
challengeType: 5
forumTopicId: 302034
dashedName: problem-372-pencils-of-rays
---
# --description--
Нехай $R(M, N)$ буде кількістю точок доріжки ($x$, $y$), яка задовільняє $M \lt x \le N$, $M \lt y \le N$ та $\left\lfloor\frac{y^2}{x^2}\right\rfloor$ і непарним.
Можемо переконатись, що $R(0, 100) = 3\\,019$ та $R(100, 10\\,000) = 29\\,750\\,422$.
Знайдіть $R(2 \times {10}^6, {10}^9)$.
**Note:** $\lfloor x\rfloor$ представляє підлогу цілої функції.
# --hints--
`pencilsOfRays()` має повернути `301450082318807040`.
```js
assert.strictEqual(pencilsOfRays(), 301450082318807040);
```
# --seed--
## --seed-contents--
```js
function pencilsOfRays() {
return true;
}
pencilsOfRays();
```
# --solutions--
```js
// solution required
```