Skip to content

Instantly share code, notes, and snippets.

@katsuyan
Created March 21, 2018 12:54
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 katsuyan/2614795767ab4c39e84ff8f5eded6910 to your computer and use it in GitHub Desktop.
Save katsuyan/2614795767ab4c39e84ff8f5eded6910 to your computer and use it in GitHub Desktop.
数学パズルonClojure-Q17
(ns puzzule.q17)
(def fib-seq
(lazy-cat [1 1] (map + (rest fib-seq) fib-seq)))
(defn answer [num]
(last (take (+ num 2) fib-seq)))
(answer 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment