16 Pairs ProblemLevel pending
I need to generate all the 16 ordered pairs (y,z) using integers (x) : 1,2,3....16 ,where (y,z) are the 16 combinations of 2,-2,6,-6. In need a formula for both y and z.
Output should be like ( y=f(x),z=g(x) ), x=1,2....16. So, if I substitute x=1,2...16 in ( y=f(x),z=g(x) ), I should get all the 16 ordered pairs.