957 B
957 B
id, title, challengeType, forumTopicId, dashedName
id | title | challengeType | forumTopicId | dashedName |
---|---|---|---|---|
5900f4c71000cf542c50ffd8 | Problema 346: Repunit Forti | 5 | 302005 | problem-346-strong-repunits |
--description--
Il numero 7 è speciale, perché 7 è 111 scritto in base 2, e 11 scritto in base 6 (cioè 7_{10} = {11}_6 = {111}_2
). In altre parole, 7 è una repunit in almeno due basi b > 1
.
Chiameremo un numero intero positivo con questa proprietà una forte repunit. Si può verificare che ci sono 8 forti repunit sotto 50: {1, 7, 13, 15, 21, 31, 40, 43}. Inoltre, la somma di tutti i repunit forti sotto 1000 è pari a 15864.
Trova la somma di tutti i repunit forti sotto {10}^{12}
.
--hints--
strongRepunits()
dovrebbe restituire 336108797689259260
.
assert.strictEqual(strongRepunits(), 336108797689259260);
--seed--
--seed-contents--
function strongRepunits() {
return true;
}
strongRepunits();
--solutions--
// solution required