a palindrome is a number that reads the same forward and backward . for example . 2442 and 111 are palindromes . if 5 - digit palindromes are formed using one or more of the digits , 1 , 2 , 3 , how many such palindromes are possible ?
xyzyx x can be 1 , 2 , or 3 , thus 3 options . y can be 1 , 2 , or 3 , thus 3 options . z can be 1 , 2 , or 3 , thus 3 options . total 3 ^ 3 = 27 . answer : e .
multiply(multiply(const_3, 3), 3)