1.1 KiB
1.1 KiB
id, title, challengeType, forumTopicId, dashedName
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f49b1000cf542c50ffae | Завдання 303: Кратні числа з малими розрядами | 5 | 301957 | problem-303-multiples-with-small-digits |
--description--
Для додатного цілого числа n
визначте f(n)
оскільки найменше додатне кратне число n
, записане в десятковій системі числення, що використовує лише розряди ≤ 2
.
Таким чином, f(2) = 2
, f(3) = 12
, f(7) = 21
, f(42) = 210
, f(89) = 1\\,121\\,222
.
Також, \displaystyle\sum_{n = 1}^{100} \frac{f(n)}{n} = 11\\,363\\,107
.
Знайдіть \displaystyle\sum_{n = 1}^{10\\,000} \frac{f(n)}{n}
.
--hints--
multiplesWithSmallDigits()
має повернути 1111981904675169
.
assert.strictEqual(multiplesWithSmallDigits(), 1111981904675169);
--seed--
--seed-contents--
function multiplesWithSmallDigits() {
return true;
}
multiplesWithSmallDigits();
--solutions--
// solution required