Number Pyramids
Write an expression for the topmost row of a pyramid with 4 rows in terms of the values in the bottom row.
Let the bottom row of a 4-row pyramid be a, b, c, d (from left to right).
Row 3 (second from bottom): a+b, b+c, c+d
Row 2: (a+b)+(b+c) = a+2b+c, (b+c)+(c+d) = b+2c+d
Row 1 (top): (a+2b+c) + (b+2c+d) = a + 3b + 3c + d
The coefficients 1, 3, 3, 1 match the third row of Pascal's triangle (since the top of an n-row pyramid uses C(n-1,0), C(n-1,1), ..., C(n-1,n-1) as coefficients of the bottom entries).
Answer: Top = a + 3b + 3c + d
