Return the n-th Fibonacci number

fibonacci(n)

Arguments

n

n

Value

the sequence element

Details

This function is recursively implements the famous Fibonacci sequence. The function returns the nth member of the sequence.

See also

Examples

fibonacci(10)
#> [1] 55