Files

43 lines
957 B
Markdown
Raw Permalink Normal View History

---
id: 5900f4c71000cf542c50ffd8
title: 'Problema 346: Repunit Forti'
challengeType: 5
forumTopicId: 302005
dashedName: 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`.
```js
assert.strictEqual(strongRepunits(), 336108797689259260);
```
# --seed--
## --seed-contents--
```js
function strongRepunits() {
return true;
}
strongRepunits();
```
# --solutions--
```js
// solution required
```