Logarithms

Write a program that computes logarithms in several bases.

Input

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

Output

For every pair, print ⌊log⁡bn⌋\lfloor \log_b n \rfloor.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:50:08.406Z

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