Given a set of numbers, find the Length of the Longest Geometrix Progression (LLGP) in it. The common ratio of GP must be an integer.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. The first line of each test case contains an integer N denoting the size array A representing the set of numbers
The second line of each test case contains N space separated integers denoting elements of the array A[ ].
Print the length of the longest geometric progression for each test case in a new line.