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:
static IEnumerable<int> GetCalculatedFibonacciSequence()
{
var current = 1;
var b = 0;
var next = 0;
yield return next;
yield return current;
while (true)
{
next = current + b;
yield return next;
b = current;
current = next;
}
}