Bill's Triangle
Bill's Triangle is a triangle similar to Pascal's Triangle, except each number is obtained by adding the top three numbers, not just the top two. It was found by Bill9000. (If anyone finds someone who found this triangle before, please tell Bill9000.)
How to Make Bill's Triangle
As with Pascal's Triangle, we start with a complete row of zeros. However, in Bill's Triangle, we need another row:
Again, as with Pascal's Triangle, we change a zero to a one:
Now, we can add the top three numbers to get the next number. The boxed numbers are the ones we add to get the next row.
We add so that is the next number. We also add these numbers:
Therefore, the first few rows of Bill's Triangle are
We could keep adding zeroes, but as with Pascal's Triangle, we can get rid of them. Hopefully, by now you have gotten the "gist" of Bill's Triangle, and we can proceed to calculate the next few rows:
Why is this useful?
Bill's Triangle counts paths on a grid, just like Pascal's Triangle. While Pascal's Triangle counts the number of ways to get from point to point on a grid, if you are only allowed to go vertically and horizontally. Bill's Triangle allows you to go diagonally, like in this grid:
for (int i = 0; i <= 10; i += 1) { for (int j = 0; j <= 8; += 1) { draw((0,i)--(j,i)); } } (Error making remote request. Unknown error_msg)