# Rabbits and Recurrence Relations

*Author: L. Grondin*

http://rosalind.info/problems/fib/

Sample input

5 3

Sample output

```
19
```

Source code: fib-grondilu.pl

use v6; sub MAIN(Int $n = 5, Int $k = 3) { my @fib = 1, 1, * * $k + * ... *; say @fib[$n-1]; }