There are n cookies on a table. Adam did this series of steps: In the 1st step he put 1 cookie in the middle of every two neighbouring cookies, in the 2nd step he put 2 cookies in the middle of every two neighbouring cookies, in the kth step he put k cookies in the middle of every two neighbouring cookies... Find the formula for computing the number of cookies on the table after the kth step.
Now I have found that the formula for it is: (k+1)!(n-1)+1
However, I got this purely by computing the number of cookies manually for small ks and simply observing the patterns.
How can I prove that this formula works, and why does it work?