42 : 2 = 21 Rest 0 21 : 2 = 10 Rest 1 10 : 2 = 5 Rest 0 5 : 2 = 2 Rest 1 2 : 2 = 1 Rest 0 1 : 2 = 0 Rest 1 {\displaystyle {\begin{aligned}42&:2=\color {red}{21}&{\textrm {Rest}}~0\\\color {red}{21}&:2=\color {green}{10}&{\textrm {Rest}}~1\\\color {green}{10}&:2=\color {orange}{5}&{\textrm {Rest}}~0\\\color {orange}{5}&:2=\color {blue}{2}&{\textrm {Rest}}~1\\\color {blue}{2}&:2=\color {hotpink}{1}&{\textrm {Rest}}~0\\\color {hotpink}{1}&:2=0&{\textrm {Rest}}~1\\\end{aligned}}}
Die Reste ergeben von unten nach oben die Binärzahl 101010 {\displaystyle 101010} .