Files
numnum/theory/ternary.en.html
T
2026-07-17 23:44:44 +03:00

11 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<h3>Balanced Ternary: Base 3 with signed digits</h3>
<p>Balanced ternary is a non-standard positional system where each digit can be 1, 0, or +1. Instead of using the digits 0, 1, 2 as in standard ternary, it uses special symbols:</p>
<h3>Digits</h3>
<div class="theory-example">⊖ = 1, 0 = 0, ⊕ = +1</div>
<p>⊖ (U+2296, Circled Minus) represents 1, and ⊕ (U+2295, Circled Plus) represents +1.</p>
<h3>How it works</h3>
<p>Each position represents a power of 3, but digits can be negative:</p>
<div class="theory-example">⊕0⊖ = (+1)×9 + 0×3 + (1)×1 = 8</div>
<p>For negative numbers, the signs of all non-zero digits are flipped (⊕ ↔ ⊖).</p>
<h3>Properties</h3>
<p>Balanced ternary has the unique property that the sign of a number can be determined from its most significant non-zero digit, eliminating the need for a separate sign. The system was studied by Leonardo Pisano (Fibonacci, 11701250) in connection with the weight problem — using weights of powers of 3, any integer mass from 1 can be measured with the fewest weights. In 1958, the Soviet engineer Nikolai Brusentsov built the Setun computer at Moscow State University, which used balanced ternary arithmetic and became one of the most elegant early ternary computers.</p>