原理的に解く方法なので, 忘れても思い出せる。
はじめに, 10進から16進の変換を行う。 16進の桁の重みを列記しておきます。
\(\s{425d=\square\x 16^3+\square\x 16^2+\square\x 16^1}\)\(\s{+\square\x 16^0}\)
\(\s{=\square\x4096+\blacksquare\x 256+\blacksquare\x16+\blacksquare\x1}\) \(\ \sc{:ⓐ}\)
425を割れるのは "16の桁の重みは256" です, その余り169 も同様に処理する:
\(\ \frac{425}{256}=\ul{1}\ \sc{余り}169\)
\(,\ \frac{169}{16}=\ul{0Ah(=10d)}\ \sc{余り}\ul{9}\)
上記の下線部を \(ⓐ\)に代入する
256の重み=1, 16の重み=10, 1の重み=10
\(425=\s{\clb{ 0\x 4096+1\x 256} + \cl{10\x 16}+ 9\x 1 }\)
\(=\clb{0\ 1}\ \cl{A} \ 9\ \s{h}\)
\(=\ul{ \clb{1}\ \cl{A}\ 9\ \s{h} }\)
最後に 16進から2進への変換は次のように直接書けます。
\( \underbrace{\clb{1}}_{ \clb{0001} }
\underbrace{ \cl{A} }_{\cl{1010}}\)
\(\underbrace{9}_{1001}\)
\(\quad =\ul{ \clb{0001}\ \cl{1010}\ 1001\ b} \)
\(\therefore 425d=\ul{ \clb{1}\ \cl{A}\ 9\ \s{h} }\)\(=\ul{ \clb{0001}\ \cl{1010}\ 1001\ b} \)
…以上