

Given:-
‘N’ = 3, ‘ANSWERS’ = [2,2,2]

There are a total of 3 rabbits because each of the ‘ANSWERS[i]’ tells that there are two more rabbits just like them with the same color.
The first line of input contains an integer ‘T’ denoting the number of test cases.
The first line of each test case contains a single integer, ‘N’, where ‘N’ is the number of elements of the array.
The second line of each test case contains ‘N’ space-separated integers, denoting the elements of 'ANSWERS'.
For each test case, print an integer denoting the total number of rabbits.
The output of each test case will be printed in a separate line.
You don’t need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 5
1 <= N <= 5000
1 <= ANSWERS[i] < 1000
Where ‘ANSWERS’[i] is the array element at index ‘i’.
Time limit: 1 sec
The main idea is that if ‘X’ + 1 rabbits have the same color, then we get ‘X’ + 1 rabbits who all answer ‘X’ i.e ‘ANSWERS[i]’ = ‘X’ for ‘X’ + 1 rabbits. Now ‘N’ rabbits answer ‘X.’
Thus, the number of groups is ceil(‘N’ / (‘X’ + 1)).
Algorithm: