Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
For e.g. any range of number 0 - n
0 1 2 3 4 5 6
to:
0 2 4 6 4 2 0
Is there a name for this kind of formula or calculation?