Bill's Triangle

Revision as of 14:10, 6 August 2017 by Bill9000 (talk | contribs) (Why is this useful?)

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:

\[0, 0\] \[0, 0, 0\]

Again, as with Pascal's Triangle, we change a zero to a one:

\[0, 0\] \[0, 1, 0\]

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.

\[\boxed{0}, 0\] \[\boxed{0}, \boxed{1}, 0\]

We add $0 + 0 + 1 = 1,$ so that is the next number. We also add these numbers:

\[0, \boxed{0}\] \[0, \boxed{1}, \boxed{0}\]

Therefore, the first few rows of Bill's Triangle are

\[0, 0\] \[0, 1, 0\] \[0, 1, 1, 0\]

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:

\[1\] \[1 , 1\] \[1 , 3 , 1\] \[1 , 5 , 5 , 1\] \[1 , 7 , 13 , 7 , 1\] \[1 , 9 , 25 , 25 , 9 , 1\] \[1, 11, 41, 63, 41, 11, 1\] \[\vdots\]


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 $A$ to point $B$ 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)