miniGOINGS
Legend
- Joined
- Feb 27, 2009
- Messages
- 3,049
my brain at 3 in the morning said:If there was a pyramid made out of blocks, and it was a perfect pyramid;
The 1st layer would be 1 block wide and 1 block long.
The 2nd layer would be 2 blocks wide and 2 blocks long.
The 3rd layer would be 3 blocks wide and 3 blocks long.
etc.
Therefor;
The 1st layer would have 1*1 = 1 block.
The 2nd layer would have 2*2 = 4 blocks.
The 3rd layer would have 3*3 = 9 blocks.
etc.
Therefor;
A pyramid 1 layer high would have 1 block.
A pyramid 2 layers high would have 1 + 4 = 5 blocks.
A pyramid 3 layers high would have 1 + 4 + 9 = 14 blocks.
etc.
This means that;
Layers|Blocks
....1...|....1...
....2...|....5...
....3...|...14..
etc.
...(after a few hours and 2 pieces of paper later)...
The formula I found for connecting the number of layers and the number of blocks is;
{[(a)(2) + 1]^2 + [(a)(2) + 1]}
{----------------------------} * (a/2) = x
{.................6.................... }
Were a = the number of layers and x = the number of blocks.
After a few minutes of simple algebra I was able to shorten it to;
......2a^3 + 3a^2 + a..
x = -------------------
................6..............
My questions are;
1. Does this formula have any practical use?
2. Has this formula already been found?
3. Is it possible to condense the formula even more?
Thanks,
Matt