The above value might contain repeated values which are divisible by both A and B . Therefore , the count of numbers which are divisible by both A and B are found
cnt_of_ab = Math . floor ( n / ( a * b ) ) ;