tomato problem

, ,

Consider the entire town of Chefville to be consisting of cells in a rectangular grid of positive coordinates.

Chef own all cells (x,y)
that satisfy x∗y≤N

As an example if N=4

, Chef owns the following cells:


Chef can only grow tomatoes in rectangular patches consisting only of cells which belong to him. Also, if he uses a cell, he must use it entirely. He cannot use only a portion of it.

Help Chef find the number of unique patches of rectangular land that he can grow tomatoes in! Since this number can be very large, output it modulo 1000000007


The first line of the input contains T

, the number of test cases.
The next T
lines of input contains one integer N



For each testcase, output the number of ways modulo 1000000007

can anyone help me writing this code in basic c language