i can't see why is all this mess about this topic !
it's just Fibonacci sequence no offence.
all it needs is a function with two static variables, and voila, we have the solution.
this will work unless you want some special functionality in the program.