Robert Crandal wrote: > >Suppose I have this data: > >X Y >-- -- >0 -1 >1 1 >2 1 >3 1 >. . >N N > >(Assume X is an integer >= zero) > >Is there a formula for this set of non-negative >integers that does NOT use the absolute value >function?
The absolute value function provides an easy way to get an "if-then", but there are other ways.
>I thought maybe an alternating series >would help here, but I can't think of anything. > >Any ideas?