Find LCM of a and b
let lcm = FindLCM ( a , b ) ; let a_divisor = parseInt ( n / a , 10 ) - parseInt ( ( m - 1 ) / a , 10 ) ; let b_divisor = parseInt ( n / b , 10 ) - parseInt ( ( m - 1 ) / b , 10 ) ;