Problem 2396 · Medium

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.

Open the interactive visualisation