WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Generalized Digit Parity

start
0
spread
200
start base
2
base spread
50
color scheme
DarkBands
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
n
and for all positive integer bases
b>2
by the definition:
sumofdigitsofninbaseb(modb)
. Plotting these results in two dimensions
(n,b)
produces beautiful fractal patterns. This Demonstration explores a subset of these patterns by allowing the setting of starting values and ranges for
n
and
b
.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.