Count The Repetitions


Does this line have problem? (countr[i]  countr[k]) * (n1  1  k) / (i  k)
Shouldn't it be (countr[i]  countr[k]) * ((n1  1  k) / (i  k)).
For example if (countr[i]  countr[k]) = 3, (n1  1  k) = 19, (i  k) = 5.
Than use the first line, it is (3 * 19) / 5 = 11;
But actually it should be 9, which is 3 * (19 / 5).