What is the function rule for input x 1,2,3,4,5,6 and output 0,1,3,6,10,15?

Thanks