Binary

From Mojo Puzzler Wiki
Jump to: navigation, search
Return to: Chialisp
Return to: Recursive Functions
(defun binary (n)
  (if (= n 1)
      (* n 2) 
      (* 2 (binary (- n 1)))))