You are viewing a single comment's thread. Return to all comments →
It is because of recursion .if you see the recurrence equation is a(n)=a(n-1)+a(n-2)+a(n-3);so you need to find n-3,n-2,n-1 in order to get a(n).
Seems like cookies are disabled on this browser, please enable them to open this website
Recursion: Davis' Staircase
You are viewing a single comment's thread. Return to all comments →
It is because of recursion .if you see the recurrence equation is a(n)=a(n-1)+a(n-2)+a(n-3);so you need to find n-3,n-2,n-1 in order to get a(n).