
Help with creating a function
Posted:
Nov 18, 2013 4:15 AM


Suppose I have the following XY data set:
X Y   0 1 1 1 2 2 3 3 . . . . N N
Can this be represented with a math function? (Only consider positive integers >= 0)
I tried experimenting with y = (1 ^ x) or "1 to the power of x", but this obviously didn't work. I thought maybe an alternating series formula would work?
I already know that computer programming ifelse logic can represent this easily. I'm just very curious if a "math only" function or formula exists.
Any ideas?
Thanks!

