'Digits and bases' solved