chore(i18n,learn): processed translations (#45313)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f4c21000cf542c50ffd4
|
||||
title: 'Problem 340: Crazy Function'
|
||||
title: 'Problema 340: Funzione Pazza'
|
||||
challengeType: 5
|
||||
forumTopicId: 301999
|
||||
dashedName: problem-340-crazy-function
|
||||
@ -8,24 +8,22 @@ dashedName: problem-340-crazy-function
|
||||
|
||||
# --description--
|
||||
|
||||
For fixed integers a, b, c, define the crazy function F(n) as follows:
|
||||
Per gli interi fissati $a$, $b$, $c$, definire la funzione pazza $F(n)$ come segue:
|
||||
|
||||
F(n) = n - c for all n > b
|
||||
$$\begin{align} & F(n) = n - c \\;\text{ per ogni } n > b \\\\ & F(n) = F(a + F(a + F(a + F(a + n)))) \\;\text{ per ogni } n ≤ b. \end{align}$$
|
||||
|
||||
F(n) = F(a + F(a + F(a + F(a + n)))) for all n ≤ b.
|
||||
Inoltre, definisci $S(a, b, c) = \displaystyle\sum_{n = 0}^b F(n)$.
|
||||
|
||||
Also, define S(a, b, c) = .
|
||||
Per esempio, se $a = 50$, $b = 2000$ e $c = 40$, allora $F(0) = 3240$ e $F(2000) = 2040$. Inoltre, $S(50, 2000, 40) = 5\\,204\\,240$.
|
||||
|
||||
For example, if a = 50, b = 2000 and c = 40, then F(0) = 3240 and F(2000) = 2040. Also, S(50, 2000, 40) = 5204240.
|
||||
|
||||
Find the last 9 digits of S(217, 721, 127).
|
||||
Trova le ultime 9 cifre di $S({21}^7, 7^{21}, {12}^7)$.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler340()` should return 291504964.
|
||||
`crazyFunction()` dovrebbe restituire `291504964`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler340(), 291504964);
|
||||
assert.strictEqual(crazyFunction(), 291504964);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -33,12 +31,12 @@ assert.strictEqual(euler340(), 291504964);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler340() {
|
||||
function crazyFunction() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
euler340();
|
||||
crazyFunction();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
Reference in New Issue
Block a user