Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Leonardo-numbers/Maple/leonardo-numbers.maple
Normal file
13
Task/Leonardo-numbers/Maple/leonardo-numbers.maple
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
L := proc(n, L_0, L_1, add)
|
||||
if n = 0 then
|
||||
return L_0;
|
||||
elif n = 1 then
|
||||
return L_1;
|
||||
else
|
||||
return L(n - 1) + L(n - 2) + add;
|
||||
end if;
|
||||
end proc:
|
||||
|
||||
Leonardo := n -> (L(1, 1, 1),[seq(0..n - 1)])
|
||||
|
||||
Fibonacci := n -> (L(0, 1, 0), [seq(0..n - 1)])
|
||||
Loading…
Add table
Add a link
Reference in a new issue