(
EN)
«Perhaps the prettiest number system of all is the balanced ternary notation»
(
IT)
«Forse il sistema numerico più grazioso di tutti è la notazione ternaria bilanciata»
Il ternario bilanciato è un sistema numerico posizionale non standard. È un sistema in base 3, che, a differenza del sistema ternario standard, usa come cifre -1, 0 e 1 anziché 0, 1 e 2. Le potenze di 3 usate per rappresentare il numero possono avere quindi coefficiente positivo, nullo o negativo.
La seguente tabella elenca i primi 12 numeri scritti nel sistema decimale, ternario e ternario bilanciato (viene usato il simbolo 1 per rappresentare la cifra -1).
Decimale |
Ternario |
Ternario bilanciato
|
![{\displaystyle 1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/92d98b82a3778f043108d4e20960a9193df57cbf) |
![{\displaystyle 1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/92d98b82a3778f043108d4e20960a9193df57cbf) |
|
![{\displaystyle 2}](https://wikimedia.org/api/rest_v1/media/math/render/svg/901fc910c19990d0dbaaefe4726ceb1a4e217a0f) |
![{\displaystyle 2}](https://wikimedia.org/api/rest_v1/media/math/render/svg/901fc910c19990d0dbaaefe4726ceb1a4e217a0f) |
|
![{\displaystyle 3}](https://wikimedia.org/api/rest_v1/media/math/render/svg/991e33c6e207b12546f15bdfee8b5726eafbbb2f) |
![{\displaystyle 10}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4ec811eb07dcac7ea67b413c5665390a1671ecb0) |
|
![{\displaystyle 4}](https://wikimedia.org/api/rest_v1/media/math/render/svg/295b4bf1de7cd3500e740e0f4f0635db22d87b42) |
![{\displaystyle 11}](https://wikimedia.org/api/rest_v1/media/math/render/svg/da6aabe7c6af49fe640b2d401cb2dbe909bb7475) |
|
![{\displaystyle 5}](https://wikimedia.org/api/rest_v1/media/math/render/svg/29483407999b8763f0ea335cf715a6a5e809f44b) |
![{\displaystyle 12}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a522d3aa5812a136a69f06e1b909d809e849be39) |
|
![{\displaystyle 6}](https://wikimedia.org/api/rest_v1/media/math/render/svg/39d81124420a058a7474dfeda48228fb6ee1e253) |
![{\displaystyle 20}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a54c80a7183ec4efa84bba969ef7894f5d78e70c) |
|
![{\displaystyle 7}](https://wikimedia.org/api/rest_v1/media/math/render/svg/ee716ec61382a6b795092c0edd859d12e64cbba8) |
![{\displaystyle 21}](https://wikimedia.org/api/rest_v1/media/math/render/svg/77ebb9ccf6080ba5c9a6ea8973cb2f26c50211cf) |
|
![{\displaystyle 8}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1aaa997e6ad67716cfaa9a02c4df860bf60a95b5) |
![{\displaystyle 22}](https://wikimedia.org/api/rest_v1/media/math/render/svg/5fe66bafe1196aaf0d81ad3befae7298da443e49) |
|
![{\displaystyle 9}](https://wikimedia.org/api/rest_v1/media/math/render/svg/32d3d1e1f9dfe0254c628379e69a69711fe4eabd) |
![{\displaystyle 100}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0572cd017c6d7936a12737c9d614a2f801f94a36) |
|
![{\displaystyle 10}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4ec811eb07dcac7ea67b413c5665390a1671ecb0) |
![{\displaystyle 101}](https://wikimedia.org/api/rest_v1/media/math/render/svg/03a2f2ba5c3a850b0cc3d7efb40a3a7442ec6acc) |
|
![{\displaystyle 11}](https://wikimedia.org/api/rest_v1/media/math/render/svg/da6aabe7c6af49fe640b2d401cb2dbe909bb7475) |
![{\displaystyle 102}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a0816f84adcb78c88b596994ee3f5d6ecd16933f) |
|
![{\displaystyle 12}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a522d3aa5812a136a69f06e1b909d809e849be39) |
![{\displaystyle 110}](https://wikimedia.org/api/rest_v1/media/math/render/svg/61d2b914b923dff8ccc0236742b94ae745f1fed8) |
|
|
|
|
|
|
|
Aritmetica
Addizione
La tavola di addizione è molto semplice, tenendo solo conto che si può avere un riporto negativo
![{\displaystyle {\begin{array}{cc}1&+\\0&=\\\hline 1&\\\end{array}\ {\begin{array}{cc}1&+\\1&=\\\hline 1{\bar {1}&\\\end{array}\ {\begin{array}{cc}1&+\\{\bar {1}&=\\\hline 0&\\\end{array}\ {\begin{array}{cc}{\bar {1}&+\\{\bar {1}&=\\\hline {\bar {1}1&\\\end{array}](https://wikimedia.org/api/rest_v1/media/math/render/svg/84c91d3b7e415f66fb74fd2949d8fd1a5bc0c274)
Sottrazione
La sottrazione si effettua invertendo le cifre del numero da sottrarre e sommando.
Moltiplicazione
Anche la moltiplicazione si effettua in modo piuttosto semplice, riducendosi a una serie di cambi di segno e addizioni, come nel seguente esempio, nel quale viene eseguita l'operazione 23 × 17 = 391:
![{\displaystyle {\begin{aligned}&10{\bar {1}{\bar {1}\ \times \\&1{\bar {1}0{\bar {1}\ =\\\hline &{\bar {1}011\\0&000\\{\bar {1}0&11\\10{\bar {1}&{\bar {1}\\\hline 1{\bar {1}{\bar {1}&{\bar {1}111\end{aligned}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f906705f2740da7e0a51ebe96b72a8aa5cf0c492)
Numeri negativi
Il sistema ternario bilanciato non ha bisogno di un segno meno per rappresentare i numeri negativi. Per cambiare il segno di un numero basta cambiare il segno delle sue cifre.
![{\displaystyle 1{\bar {1}1{\bar {1}=20}](https://wikimedia.org/api/rest_v1/media/math/render/svg/31a325199e15e9c3903c4a54d66c8f21c427cb81)
![{\displaystyle {\bar {1}1{\bar {1}1=-20}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6844fec8555d6d72c331045c1de77fcfc11f2094)
La possibilità di rappresentare anche i numeri negativi ha un costo sulle cifre da usare rispetto al sistema ternario standard, infatti, per rappresentare un generico numero n nel sistema ternario bilanciato occorrono
cifre, superiori o tutt'al più uguali alle
cifre nel sistema ternario standard.
Altri progetti