Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -0,0 +1,11 @@
|
|||
##
|
||||
function rn(n, k: integer): list<integer>;
|
||||
begin
|
||||
assert(k >= 2);
|
||||
result := if n = 2 then Lst(1, 1, 1) else rn(n - 1, n + 1);
|
||||
while result.Count <> k do
|
||||
result.Add(result[^(n + 1):^1].Sum);
|
||||
end;
|
||||
|
||||
for var n := 2 to 8 do
|
||||
println(n, ': ', rn(n, 15));
|
||||
Loading…
Add table
Add a link
Reference in a new issue