- #1

- 399

- 1

1 3 7 12 18 26 35 45 56 69 ...

I understand that every number is expressed once, covert or overt, in the sequence above.

For example you can 'find' 2 in the gap between 1 and 3. You can 'find' 4 in the gap between 3 and 7, 5 in the gap between 7 and 12, etc.

Can someone please show me an algorithm that I can use for generating the nth number in this sequence?