text: Function to return the count of numbers which are divisible by both A and B in the range [ 1 , N ] in constant time
code: class GFG { static int countOfNum ( int n , int a , int b ) { int cnt_of_a , cnt_of_b , cnt_of_ab , sum ;