You can put this solution on YOUR website! You already have the outputs for the inputs. You want maybe the relationship? Looks like a line. Slope is 3. At x=0, y=-8;
You can put this solution on YOUR website! y(i) = x(i)-2*(n-i)
where i=1,2,3....(i.e. position of terms)
y(i) is (i)th output
x(i) is (i)th input
n is total no. of terms