What I am attempting to do is the following. I want to find for some given function $f$ the unique step function $c$ (up to an arbitrary constant) such that $f(x) - c(x)$ is continuous assuming it exists. I technically have a formula based on a summation. This summation has to know which points have jump discontinuities. Therefore, I seek a function/sequence that returns the $n$-th jump discontinuity from $x = 0$ such that negative values of $n$ give jump discontinuities $a_n$ such that $a_n < 0$ unless such an $a_n$ does not exist in which case $a_n = a_0$ for all $n < 0$.
Is there such a discrete input function that allows me to "iterate" through those points like in a sequence and if so, how would I go about finding it?
Originally this question was specifically about functions of the form $\lfloor f(x) \rfloor$'s discontinuities. This is in fact equivalent to what I am editing this question into. Any function with such discontinuities can be rewritten into the form $f(x) = g(x) - j(\lfloor h(x) \rfloor)$ which means that this question and the one in the previous edit are equivalent. This version is simply easier to understand. That's all.
f(n) = (-1)^n * Floor[n/2]or something similar? Just a function that generates the integers? – Mar 05 '16 at 00:49