A programming exercise to calculate a Fibonacci number.
From Wikipedia: In mathematics, the Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
Often, especially in modern usage, the sequence is extended by one more initial term:
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
This class will produce either a single Fibonacci number:
long f = fibonaci( 20 );
or a sequence:
long[] f = fibonaciSequence( 1, 20 );
or a sequence starting at 0:
long[] f = fibonaciSequence( 20 );