I had just recently asked about sequences, and was told about indicator functions. I had asked about $$S= 1,0,1,0,0,1,0,0,0...$$ And concluded it was just 1 if the ordinal is a triangular number, and 0 elsewhere.
But what happens if the 1 changes with $n$, that is, the sequence $$S=1,0,2,0,0,3,0,0,0,4,0,0,0,0,5...$$ How could you write that using an indicator function?
I've tried coming up with a few, but it always comes up a bit off.