I'm new to algorithms and looking for some assistance.
Just want a simple one that is an additive process. 1 - 1, 2 - 1, 2, 3 - 1, 2, 3, 4.
Not exactly sure how to do this. I tried messing about with a counter that keeps resetting itself at different times, but could not seem to get it to work.
Any help is appreciated.
Thanks