chore(i18n,curriculum): update translations (#44283)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5900f5181000cf542c51002a
|
||||
title: 'Problem 427: n-sequences'
|
||||
title: 'Problema 427: Sequencias n'
|
||||
challengeType: 5
|
||||
forumTopicId: 302097
|
||||
dashedName: problem-427-n-sequences
|
||||
@ -8,24 +8,24 @@ dashedName: problem-427-n-sequences
|
||||
|
||||
# --description--
|
||||
|
||||
A sequence of integers S = {si} is called an n-sequence if it has n elements and each element si satisfies 1 ≤ si ≤ n. Thus there are nn distinct n-sequences in total.
|
||||
Uma sequência de números inteiros $S = \\{s_i\\}$ é chamada de sequência $n$ se ela tem $n$ elementos e cada elemento $s_i$ satisfaz $1 ≤ s_i ≤ n$. Portanto, há $n^n$ sequências $n$ distintas no total.
|
||||
|
||||
For example, the sequence S = {1, 5, 5, 10, 7, 7, 7, 2, 3, 7} is a 10-sequence.
|
||||
Por exemplo, a sequência $S = \\{1, 5, 5, 10, 7, 7, 7, 2, 3, 7\\}$ é uma sequência de 10.
|
||||
|
||||
For any sequence S, let L(S) be the length of the longest contiguous subsequence of S with the same value. For example, for the given sequence S above, L(S) = 3, because of the three consecutive 7's.
|
||||
Para qualquer sequência $S$, considere $L(S)$ como o comprimento da subsequência contígua mais longa de $S$ com o mesmo valor. Por exemplo, para a sequência $S$ dada acima, $L(S) = 3$, por causa dos três 7 consecutivos.
|
||||
|
||||
Let f(n) = ∑ L(S) for all n-sequences S.
|
||||
Considere $f(n) = \sum L(S)$ para todas as $S$ sequências $n$.
|
||||
|
||||
For example, f(3) = 45, f(7) = 1403689 and f(11) = 481496895121.
|
||||
Por exemplo, $f(3) = 45$, $f(7) = 1.403.689$ e $f(11) = 481.496.895.121$.
|
||||
|
||||
Find f(7 500 000) mod 1 000 000 009.
|
||||
Encontre $f(7.500.000)\bmod 1.000.000.009$.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler427()` should return 97138867.
|
||||
`nSequences()` deve retornar `97138867`.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler427(), 97138867);
|
||||
assert.strictEqual(nSequences(), 97138867);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
@ -33,12 +33,12 @@ assert.strictEqual(euler427(), 97138867);
|
||||
## --seed-contents--
|
||||
|
||||
```js
|
||||
function euler427() {
|
||||
function nSequences() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
euler427();
|
||||
nSequences();
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
Reference in New Issue
Block a user