# IOTA - 加密與簽章 ## 平衡三進制系統 ### 平衡三進制與非平衡三進制 一般常見的三進制是指非平衡三進制,其數字包含0、1、2,而平衡三進制不同的地方在於它是用-1、0、1來表示一個數,而-1為了方便表示,因此使用T來代表-1。  ### 平衡三進制系統的表示方式 平衡三進制的單一位元稱為trit,而一個位元組有3個trits,稱為Tryte。與一般進置系統不同的是,位數較大的值會在右邊。 以2個trits為例,一共有9種組合: <style> #trits-table td { padding: 0 1px !important; text-align: right; border: 0 !important; background: #fff; } #trits-table td { border: 0 !important; } </style> <table id="trits-table"> <tr> <td>TT =></td> <td>-1 × 3<sup>0</sup> +</td> <td>-1 × 3<sup>1</sup> =</td> <td>-4</td> </tr> <tr> <td>0T =></td> <td>0 × 3<sup>0</sup> +</td> <td>-1 × 3<sup>1</sup> =</td> <td>-3</td> </tr> <tr> <td>1T =></td> <td>1 × 3<sup>0</sup> +</td> <td>-1 × 3<sup>1</sup> =</td> <td>-2</td> </tr> <tr> <td>T0 =></td> <td>-1 × 3<sup>0</sup> +</td> <td>0 × 3<sup>1</sup> =</td> <td>-1</td> </tr> <tr> <td>00 =></td> <td>0 × 3<sup>0</sup> +</td> <td>0 × 3<sup>1</sup> =</td> <td>0</td> </tr> <tr> <td>10 =></td> <td>1 × 3<sup>0</sup> +</td> <td>0 × 3<sup>1</sup> =</td> <td>1</td> </tr> <tr> <td>T1 =></td> <td>-1 × 3<sup>0</sup> +</td> <td>1 × 3<sup>1</sup> =</td> <td>2</td> </tr> <tr> <td>01 =></td> <td>0 × 3<sup>0</sup> +</td> <td>1 × 3<sup>1</sup> =</td> <td>3</td> </tr> <tr> <td>11 =></td> <td>1 × 3<sup>0</sup> +</td> <td>1 × 3<sup>1</sup> =</td> <td>4</td> </tr> </table>
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.