Problem: You are given two positive integers and . Print the -th positive integer that is not divisible by .
For example, if , and , then all numbers that are not divisible by are: . The -th number among them is .
Input Format: The first line contains an integer () — the number of test cases in the input. Next, test cases are given, one per line.
Each test case is two positive integers () and ().
Output Format: For each test case print the -th positive integer that is not divisible by .