Skip to content

Instantly share code, notes, and snippets.

@enigmaticape
Created November 4, 2012 19:19
Show Gist options
  • Save enigmaticape/4013173 to your computer and use it in GitHub Desktop.
Save enigmaticape/4013173 to your computer and use it in GitHub Desktop.
Recursive function f(n), for completeness, from SICP exercise 1.11
(define (F n)
(cond ( (< n 3) n)
( else (+ (F (- n 1))
(* (F (- n 2)) 2)
(* (F (- n 3)) 3)))))
@enigmaticape
Copy link
Author

From discussion of solution to exercise 1.11 of Structure and Interpretation of Computer Programs (SICP) on the Enigmatic Ape blog at http://www.enigmaticape.com/blog/sicp-exercise-1-10-ackermanns-antics/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment