Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
function Q = Qsequence(N)
|
||||
%% zeros are used to pre-allocate memory, this is not strictly necessary but can significantly improve performance for large N
|
||||
Q = [1,1,zeros(1,N-2)];
|
||||
for n=3:N
|
||||
Q(n) = Q(n-Q(n-1))+Q(n-Q(n-2));
|
||||
end;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue