Problem 1837 · Easy

Sum of Digits in Base K

Sum the digits of n in base k without converting to decimal text.

Open the interactive visualisation