Consider a pyramid with 2017 rows made up of empty boxes. The first (top) row has 1 box, and each successive row has an additional box so that the bottom row has 2017 boxes.
First, place each of the first 2017 positive integers into the boxes in the bottom row. Then, each empty box in the row is filled with the sum of the two numbers beneath it. Then, each successively higher row of boxes is filled in the same way.
Let and be the maximum and minimum possible values, respectively, of the single box on the top. Then where and are positive integers such that is as large as possible. Find the value of
Note: Below is an example of how a pyramid of 4 rows could be filled.