# stairs (n) # blocks
1 1
2 1 +2 = 3
3 1 + 2 + 3 = 6
4 1 + 2 + 3 +4 = 10
For n = 4, think of 4 blocks as the base, with 3 blocks on top of them, 2 blocks on top of the 3, and finally 1 block on top of the 2. You are actually building a pyramid to form the stairs.
n = 10 the number of blocks = 10 x 11/2 =55
n = 37 the number of blocks = 37x38/2 = 703
For any number of stairs n, the total number of blocks = n(n+1)/2
Michael F.
The divide by 2 becomes clear when you draw the blocks in a grid (draw it now). Using the # stairs of 4, and # blocks as 10, draw a grid 4 wide and 5 high. Start on the lower left and fill in that square for the first step. In the column to its right, fill in the lower 2 squares making the next set of steps. In successive columns to the right, continue to fill in one more set of steps. When you reach the right (4th column) you will see there is 10 filled in blocks. Now, look at what blocks are filled in and which are not filled in. You should see a diagonal of filled-in blocks. Counting them, you will see half the blocks are filled in, and half are empty. With 'n' as the number of steps, this example shows it is 4 ('n') wide, and 5 (4+1) high with half-filled in, so this diagram it is 4x5/2 filled in blocks, or n*(n+1)/2 blocks.
Report
09/27/19
Juliette N.
How does the formula work exactly?
Report
09/15/20
Larry S.
I understand the formula but can you explain why it works? As in why does (4*5)÷2 give you the correct answer?07/14/19