the Fibonacci sequence of numbers is generated in a different way.
The next number in that sequence is found by adding the two numbers before it.
Written as a formula, it is
and so on.
For your sequence, you could formulate it as something like
if n-1 is non-negative,