docs(lucas_number): improve subject

Add additional information on the Lucas Numbers
This commit is contained in:
nprimo 2022-11-21 15:23:48 +00:00 committed by Niccolò Primo
parent 6edb6f640e
commit 97e68708b6
1 changed files with 2 additions and 2 deletions

View File

@ -8,9 +8,9 @@ Complete the body of the **function** `lucas_number`.
pub fn lucas_number(n: u32) -> u32 {}
```
This function receives a number `n` and returns the `n`th number in the Lucas Numbers.
This function receives a number `n` and returns the `n`th number in the Lucas Numbers where the `n`th number is the sum of the previous two numbers in the series.
The Lucas Numbers start like this: 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, etc...
The Lucas Numbers start like this: 2, 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, etc...
### Usage