This program colors numbers in Pascal’s Triangle that are divisible by a given number. You can have it take the remainder when divided by a certain number (modulus) before assessing divisibility. Try divisible by 2 (no modulus), and compare to Sierpinski’s Sieve.
Stumble it!
Entries (RSS)