clojure-hackos.fibonacci-numbers

fibonacci

(fibonacci k)

Returns the kth number in the Fibonacci sequence.

Note positions are 1-indexed rather than 0-indexed, i.e.,

(fibonacci 1)
; => 0

(fibonacci 2)
; => 1