So the value in the middle of each line will be 2^(n-1)? What is the maximum you accept for the value of n? Because the n will be used to determine the height of the pyramid. Also, the value in the middle could have different length. How would you deal with 1 digit, 2 digits, 3 digits, 4 digits, etc in the same column?