Browse Source

docs(lucas_number): improve subject

Add additional information on the Lucas Numbers
pull/1591/head
nprimo 2 years ago committed by Niccolò Primo
parent
commit
97e68708b6
  1. 2
      subjects/lucas_number/README.md

2
subjects/lucas_number/README.md

@ -8,7 +8,7 @@ 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...

Loading…
Cancel
Save