Ternary is the result derived from the mathematical limit principle. The theoretical result is e, but e is not an integer. The closest integer is 3, and the next closest is 2.
Theoretically, ternary system is the simplest and most effective system of computer. The cardinal number is too high and the identification status is too complicated; The cardinality is too low and the data takes up too much storage space, which is not conducive to processing.
The reason why computers are not made in ternary system is that it is difficult to find three-state stable components.