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. 4
      subjects/lucas_number/README.md

4
subjects/lucas_number/README.md

@ -8,9 +8,9 @@ Complete the body of the **function** `lucas_number`.
pub fn lucas_number(n: u32) -> u32 {} 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 ### Usage

Loading…
Cancel
Save