Strictly Palindromic Number
Write n in every base from 2 to n minus 2 and check for palindromes; the first base that fails settles the answer.
Write n in every base from 2 to n minus 2 and check for palindromes; the first base that fails settles the answer.