Problem: There is a trampoline park with trampolines in a line. The -th of which has strength .
Pekora can jump on trampolines in multiple passes. She starts the pass by jumping on any trampoline of her choice.
If at the moment Pekora jumps on trampoline , the trampoline will launch her to position , and will become equal to . In other words, will decrease by , except of the case , when will remain equal to .
If there is no trampoline in position , then this pass is over. Otherwise, Pekora will continue the pass by jumping from the trampoline at position by the same rule as above.
Pekora can't stop jumping during the pass until she lands at the position larger than (in which there is no trampoline). Poor Pekora!
Pekora is a naughty rabbit and wants to ruin the trampoline park by reducing all to . What is the minimum number of passes she needs to reduce all to ?
Input Format: The first line contains a single integer () — the number of test cases.
The first line of each test case contains a single integer () — the number of trampolines.
The second line of each test case contains integers (), where is the strength of the -th trampoline.
It's guaranteed that the sum of over all test cases doesn't exceed .
Output Format: For each test case, output a single integer — the minimum number of passes Pekora needs to do to reduce all to .
Note: For the first test case, here is an optimal series of passes Pekora can take. (The bolded numbers are the positions that Pekora jumps into during these passes.)
For the second test case, the optimal series of passes is show below.
For the third test case, all are already equal to .