Sum of the digits in ternary as opposed to binary The value of a binary number with n bits that are all 1 is .
Sum of the digits in ternary as opposed to binary The value of a binary number with n .bits that are all 1 is 