👉 In mathematics, a ternary number is a base-3 numeral representation. It consists of three digits (usually 0, 1, and 2), with each digit representing the value 1, 2, or 3 in base 10.
For example, the ternary representation of 85 can be written as:
```
85 = 1
3^2 + 2
3^1 + 1
3^0
=