How many digits?

Write a program that computes the number of digits in several bases.

Input

Input consists of a sequence of pairs of natural numbers b and n, such
that b ≥ 2 and n ≥ 1.

Output

For every pair, print the number of digits of n in base b.

Problem information

Author: Unknown
Translator: Maria Serna

Generation: 2026-01-25T13:25:46.056Z

© Jutge.org, 2006–2026.
https://jutge.org
