Your best friend is attending math class at the university. Teacher gave him two problems during the class.
What is the sum of divisors of number ?
What is the sum of the square of divisors of number ?
He was able to solve the first one. But that took him much time. He is also curious about the number of divisors of number . But he has to solve it as soon as possible. He wants your help. He is your best friend so you do not want to turn him down. Now you know the number and its sum of divisors, you want to find number of divisors and sum of the square of divisors of that number.
You are given an integer number and its sum of divisors . You have to tell the number of divisors and the sum of the square of divisors of number .
Input starts with an integer (), denoting the number of test cases. Each case contains an integer () denoting the number and an integer () denoting the sum of divisors of the number .
For each case, print the case number and number of divisors and sum of the square of divisors module .
Input | Output |
---|---|
2 3 4 12 28 | Case 1: 2 10 Case 2: 6 210 |