Problem

NT-B2-M11-P001 Digit Sum in Base \(b\)

#1 Grade 8 Grade 9 ★★☆☆☆ Level 2 of 5

Let \(b\ge2\), and let \(N=\overline{a_ra_{r-1}\ldots a_0}_b\). Prove that \(N\equiv a_0+a_1+\cdots+a_r\pmod{b-1}\). Find all bases \(b>5\) for which \(\overline{312}_b\) is divisible by \(b-1\).