# Generalized Digit Parity

Generalized Digit Parity

This Demonstration shows fractal patterns in the generalized digit parity of natural numbers.

The concept of binary parity can be generalized for non-negative integers and for all positive integer bases by the definition: . Plotting these results in two dimensions produces beautiful fractal patterns. This Demonstration explores a subset of these patterns by allowing the setting of starting values and ranges for and .

n

b>2

sumofdigitsofninbaseb(modb)

(n,b)

n

b