Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. lucas(n)
  2. {
  3. if(n=0) return 2;
  4. if(n=1) return 1;
  5. return(tribonacci_r(n-1)+tribonacci_r(n-2);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement