Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Balanced ternary
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Conversion from any integer base to balanced ternary=== We may convert to balanced ternary with the following formula: :<math> \left(a_na_{n-1}\cdots a_1a_0.c_1 c_2 c_3\cdots\right)_b = \sum_{k=0}^n a_kb^k + \sum_{k=1}^\infty c_kb^{-k}. </math> where, : ''a<sub>n</sub>a''<sub>''n''β1</sub>...''a''<sub>1</sub>''a''<sub>0</sub>.''c''<sub>1</sub>''c''<sub>2</sub>''c''<sub>3</sub>... is the original representation in the original numeral system. : ''b'' is the original radix. ''b'' is 10 if converting from decimal. : ''a<sub>k</sub>'' and ''c<sub>k</sub>'' are the digits ''k'' places to the left and right of the radix point respectively. For instance, β25.4<sub>dec</sub> = β(1TΓ101<sup>1</sup> + 1TTΓ101<sup>0</sup> + 11Γ101<sup>β1</sup>) = β(1TΓ101 + 1TT + 11Γ·101) = β10T1.{{overline|11TT}} = T01T.{{overline|TT11}} 1010.1<sub>2</sub> = 1T<sup>10</sup> + 1T<sup>1</sup> + 1T<sup>β1</sup> = 10T + 1T + 0.{{overline|1}} = 101.{{overline|1}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)