Uh oh! Wolfram|Alpha doesn't run without JavaScript.
Please enable JavaScript. If you don't know how, you can find instructions
here
.
Once you've done that, refresh this page to start using Wolfram|Alpha.
f = m * (m - 1) + 1 + (-1)^m * (x - y) where m = (x + y + abs(x-y))/2
Natural Language
Math Input
Extended Keyboard
Examples
Upload
Random