chore(i18n,learn): processed translations (#45313)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f4d21000cf542c50ffe5
|
||||
title: 'Problem 358: Cyclic numbers'
|
||||
title: 'Problema 358: Numeri ciclici'
|
||||
challengeType: 5
|
||||
forumTopicId: 302018
|
||||
dashedName: problem-358-cyclic-numbers
|
||||
@ -8,24 +8,28 @@ dashedName: problem-358-cyclic-numbers
|
||||
|
||||
# --description--
|
||||
|
||||
A cyclic number with n digits has a very interesting property:
|
||||
Un numero ciclico con $n$ cifre ha una proprietà molto interessante:
|
||||
|
||||
When it is multiplied by 1, 2, 3, 4, ... n, all the products have exactly the same digits, in the same order, but rotated in a circular fashion!
|
||||
Quando è moltiplicato per 1, 2, 3, 4, ... $n$, tutti i prodotti hanno esattamente le stesse cifre, nello stesso ordine, ma ruotate in modo circolare!
|
||||
|
||||
The smallest cyclic number is the 6-digit number 142857 : 142857 × 1 = 142857 142857 × 2 = 285714 142857 × 3 = 428571 142857 × 4 = 571428 142857 × 5 = 714285 142857 × 6 = 857142
|
||||
Il numero ciclico più piccolo è il numero a 6 cifre 142857:
|
||||
|
||||
The next cyclic number is 0588235294117647 with 16 digits : 0588235294117647 × 1 = 0588235294117647 0588235294117647 × 2 = 1176470588235294 0588235294117647 × 3 = 1764705882352941 ... 0588235294117647 × 16 = 9411764705882352
|
||||
$$\begin{align} & 142857 × 1 = 142857 \\\\ & 142857 × 2 = 285714 \\\\ & 142857 × 3 = 428571 \\\\ & 142857 × 4 = 571428 \\\\ & 142857 × 5 = 714285 \\\\ & 142857 × 6 = 857142 \end{align}$$
|
||||
|
||||
Note that for cyclic numbers, leading zeros are important.
|
||||
Il successivo numero ciclico è 0588235294117647 con 16 cifre:
|
||||
|
||||
There is only one cyclic number for which, the eleven leftmost digits are 00000000137 and the five rightmost digits are 56789 (i.e., it has the form 00000000137...56789 with an unknown number of digits in the middle). Find the sum of all its digits.
|
||||
$$\begin{align} & 0588235294117647 × 1 = 0588235294117647 \\\\ & 0588235294117647 × 2 = 1176470588235294 \\\\ & 0588235294117647 × 3 = 1764705882352941 \\\\ & \ldots \\\\ & 0588235294117647 × 16 = 9411764705882352 \end{align}$$
|
||||
|
||||
Nota che per i numeri ciclici gli zeri iniziali sono importanti.
|
||||
|
||||
C'è solo un numero ciclico per il quale le undici cifre più a sinistra sono 00000000137 e le cinque cifre più a destra sono 56789 (cioè ha la forma $00000000137\ldots56789$ con un numero sconosciuto di cifre nel mezzo). Trova la somma di tutte le sue cifre.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler358()` should return 3284144505.
|
||||
`cyclicNumbers()` dovrebbe restituire `3284144505`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler358(), 3284144505);
|
||||
assert.strictEqual(cyclicNumbers(), 3284144505);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -33,12 +37,12 @@ assert.strictEqual(euler358(), 3284144505);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler358() {
|
||||
function cyclicNumbers() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
euler358();
|
||||
cyclicNumbers();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
Reference in New Issue
Block a user