Skip to content

Instantly share code, notes, and snippets.

@kouddy
Created February 21, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kouddy/693b4eb1e1ae405c043d to your computer and use it in GitHub Desktop.
Save kouddy/693b4eb1e1ae405c043d to your computer and use it in GitHub Desktop.
;;;(A 2 4)
;;; We know that (A 1 n) = 2^n, so steps to evaluate (A 1 n) are omitted here.
(A 1 (A 2 3))
(A 1 (A 1 (A 2 2)))
(A 1 (A 1 (A 1 (A 2 1))))
(A 1 (A 1 (A 1 2)))
...
(A 1 (A 1 4))
...
(A 1 16)
2^16 = 65536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment