A141743 Triangle read by rows T(n,k). Triangle elements are 0 and 1. Starting with 0 in the top add below a second row of (2n-1) elements (with n=2 -> 3). Moving from left to right add 0 if the number of adjacent 1's is odd or add 1 if it is even or null. See example below.
0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1
Offset: 0
Examples
...............................0 First Row ............................1.... Add 1 to have an odd number of adjacent 1's ..............................0 First Row ............................1.0.. Add 0 because there is an odd number of adjacent 1's (second row) ..............................0 First Row ............................1.0.1 Again add 1 because there is a null number of adjacent 1's. The second row is now complete. ..............................0 First Row ............................1.0.1 Second Row ..........................0... Add 0 because there is only an 1 adjacent (second row) ..............................1 First Row ............................1.0.1 Second Row ..........................0.0.... Add 0 because there is only an 1 adjacent (second row) .............................0 First Row ...........................1.0.1 Second Row .........................0.0.1 Add 1 because there are two 1's adjacent (second row) .............................0 First Row ...........................1.0.1 Second Row .........................0.0.1.1 Add 1 because there are two 1's adjacent (second and third row) .............................0 First Row ...........................1.0.1 Second Row .........................0.0.1.1.1 Add 1 because there are two 1's adjacent (second and third row) The third row is now complete. Then repeat the process for the other rows.
Links
- Paolo P. Lava, Picture of Triangle A141743
Comments