Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-294-sum-of-digits---experience-23.md

48 lines
1.1 KiB
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: 5900f4931000cf542c50ffa5
title: 'Завдання 294: Сума цифр - випадок #23'
challengeType: 5
forumTopicId: 301946
dashedName: problem-294-sum-of-digits---experience-23
---
# --description--
Для додатного цілого числа $k$, визначити $d(k)$ як суму чисел $k$ в десятковому форматі. Таким чином $d(42) = 4 + 2 = 6$.
Для додатного цілого числа $n$ визначити $S(n)$, певну кількість додатніх цілих чисел $k < {10}^n$ з наступними властивостями:
- $k$ ділиться на 23 та,
- $d(k) = 23$.
Дано: $S(9) = 263\\,626$ and $S(42) = 6\\,377\\,168\\,878\\,570\\,056$.
Знайдіть: $S({11}^{12})$ і дайте відповідь на $\bmod {10}^9$.
# --hints--
`experience23()` має повернути `789184709`.
```js
assert.strictEqual(experience23(), 789184709);
```
# --seed--
## --seed-contents--
```js
function experience23() {
return true;
}
experience23();
```
# --solutions--
```js
// solution required
```