SP7947 HS10SQFT - Almost square factorisation

Description

For a given number _n_ give all almost square factorisations of _n_, so where _n=(a^2-1)\*(b^2-1)_ and _1

Input Format

The first line contains the number of test cases _T_, where _T

Output Format

For each test case print the case number then on a new line the factorisations in increasing order of _a_ value. If there is no such factorisation then print an error message, see the sample input/output for the correct format!