redo as Integer#palindrome_in_base? and Array#sum