Question: Count the number of numbers between 2 sets.
Given two sets $A=\{2,4\},B=\{16,32,96\}$, the numbers between sets $A$ and $B$ are the numbers which are multiples of all the numbers in A and divisors of all numbers in $B.$ These numbers are $4,8$ and $16$,so there are $3$ numbers.
Solution: Find lcm of $A,$ and gcd of $B$. Denote as $l$ and $r$ respectively. The number of divisors of $r/l$ is the answer. For the above example, $l=4$ and $r=16.$ $r/l = 4.$ number of divisors of $4 = 3.$ i.e. $1,2,4.$
My question: Why is the number of divisors of $r/l$ the answer?