Numrat Binare
y-bartja 2y- për shkak te numrave binare Psh. 3=1+2*1 dmth. bartja është 1, 3=z, kurse 1 është pozita (x).
a 2 a 1 a 0 {\displaystyle {a_{2}a_{1}a_{0}}}
b 2 b 1 b 0 {\displaystyle {b_{2}b_{1}b_{0}}}
x 4 x 3 x 2 x 1 x 0 {\displaystyle {x_{4}x_{3}x_{2}x_{1}x_{0}}}
0 = a 0 b 0 = z 0 = x 0 + 2 y 1 {\displaystyle {_{0}=a_{0}b_{0}=z_{0}=x_{0}+2y_{1}}}
1 = y 1 + a 1 b 0 + a 0 b 1 = z 1 = x 1 + 2 y 2 {\displaystyle {_{1}=y_{1}+a_{1}b_{0}+a_{0}b_{1}=z_{1}=x_{1}+2y_{2}}}
2 = y 2 + a 2 b 0 + a 1 b 1 + a 0 b 2 = z 2 = x 2 + 2 y 2 {\displaystyle {_{2}=y_{2}+a_{2}b_{0}+a_{1}b_{1}+a_{0}b_{2}=z_{2}=x_{2}+2y_{2}}}
3 = y 3 + a 2 b 1 + a 1 b 2 = z 3 = x 3 + 2 y 4 {\displaystyle {_{3}=y_{3}+a_{2}b_{1}+a_{1}b_{2}=z_{3}=x_{3}+2y_{4}}}
4 = y 4 + a 2 b 2 = z 4 = x 4 + 2 y 5 {\displaystyle {_{4}=y_{4}+a_{2}b_{2}=z_{4}=x_{4}+2y_{5}}}
5 = y 5 {\displaystyle {_{5}=y_{5}}}
c 2 c 1 c 0 {\displaystyle {c_{2}c_{1}c_{0}}}
___________________
x 6 x 5 x 4 x 3 x 2 x 1 x 0 {\displaystyle {x_{6}x_{5}x_{4}x_{3}x_{2}x_{1}x_{0}}}
0 = a 0 b 0 c 0 = z 0 = x 0 + 2 y 1 {\displaystyle {_{0}=a_{0}b_{0}c_{0}=z_{0}=x_{0}+2y_{1}}}
1 = y 1 + a 1 b 0 c 0 + a 0 b 1 c 0 + a 0 b 0 c 1 = z 1 = x 1 + 2 y 2 {\displaystyle {_{1}=y_{1}+a_{1}b_{0}c_{0}+a_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