10 lines
298 B
Text
10 lines
298 B
Text
func 𝑳(n, 𝑳0 = 1, 𝑳1 = 1, 𝑳add = 1) {
|
||
{ (𝑳0, 𝑳1) = (𝑳1, 𝑳0 + 𝑳1 + 𝑳add) } * n
|
||
return 𝑳0
|
||
}
|
||
|
||
say "The first 25 Leonardo numbers:"
|
||
say 25.of { 𝑳(_) }
|
||
|
||
say "\nThe first 25 numbers using 𝑳0 of 0, 𝑳1 of 1, and adder of 0:"
|
||
say 25.of { 𝑳(_, 0, 1, 0) }
|