fibonacci_sum: Sum of Fibonacci Terms, Excluding the First

Description Usage Arguments Details Value Examples

Description

Sum of Fibonacci Terms, Excluding the First

Usage

1

Arguments

n

how many terms to sum

Details

This calculates the number of elements arranged in a triangle with one at the point, and each row containing F_n elements where F_n is the nth Fibonacci number, calculated using fibonacci_binet.

Value

the sum of the 2:n Fibonacci terms

Examples

1
2
fibonacci_sum(4)
# 11

YTLogos/ggshape documentation built on May 28, 2019, 3:21 p.m.