Last active
December 6, 2020 13:18
-
-
Save corehello/b8548b3319beba5b51690f560101ae9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun fib3 (n) | |
(cond ((= n 1) 1) | |
((= n 2) 2) | |
((= n 3) 4) | |
(t (+ (fib3 (- n 1)) | |
(fib3 (- n 2)) | |
(fib3 (- n 3)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment