The sequence: Start with 0. We subtract it from corresponding steps ahead of it,
0(0-0)
We then introduce the next term, that is, 1.
0, 1
We subtract 1 from number that’s 1 step ahead whilst introducing equivalent term/s (number that’s 1 step ahead of 1 is 2.)
0, 1, 1(2-1)
As the latest term is 1 again, we subtract 1 from the number that’s 1 step ahead of previously introduced number (i.e. 3, remember we introduced 2 before). Therefore the sequence will be,
0, 1, 1, 2(3-1)
We now subtract 2 from the number that’s 2 steps ahead of 3,
0, 1, 1, 2, 4, 3(5-2)
And so on… If steps > 1, we also include the terms in between (here, 4.)
The sequence would look something like,
0, 1, 1, 2, 4, 3, 6, 7, 5, 9, 10, 11, 12, 8,…
Good day.