Pascal's Triangle Shaded at prajwalsouza.github.io |
|||||
It is known that shading odd numbers in the Pascal's Triangle, suprizingly leads to the fractal called 'Serpenski' Triangle. We ask, what about shading different sequences out there? |
Parameters | |||||||||||
Number of Rows 20 | |||||||||||
Shade if, for value k in the triangle, | |||||||||||
The default expression "k % 2 == 1" means, when we divide k by 2, we get a remainder of 1. k is the number in the pascal's triangle. You may check the value, but clicking/tapping/hovering the mouse over the points in the triangle. |
|||||||||||
Value Selected | |||||||||||
0 |