title: A Pattern/Sequence formula
body: <p>If you have this pattern 5, 7, 12, 20, 31, 45, and those are the outputs of a function where F(0) = 5, and F(1) = 7 and so on, what is the function? I figured out that the differences between the numbers in the sequence progress in increments of 3 so I came up with (3x+2) but I'm not quite sure how to combine that with the rest of the data to make a function that fits the data. This is a math problem, but it is an exercise for my computer logic class.</p>
  
  <p>Any help would be greatly appreciated, and thanks in advance!</p>