If $\frac{a!}{b!}$ is a multiple of $4$ but not a multiple of $8$,then what is the maximum value of $a-b$ ?
My work : I've tried brute force method by trying different values for $a$ and $b$ to seek for some patters and it "seems" that the maximum value of $a-b$ is $3$. But of course if that's true or not I need to prove or disprove it,which I cant see how to do that.
P.s If you can give only hints that would be best.
Thanks in advance.
$\frac{a!}{b!} = (b+1)*(b+2)*...*(a-1)*a$
If you have two consecutive numbers multiplied, then one will be even, the other odd, and the product of the two will be even. If you have 3 consecutive numbers multiplied, then you will have either ODD x EVEN x ODD or EVEN x ODD x EVEN and if you have 4 consecutive numbers multiplied, then you will definitely have two evens and two odds.
If you have two consecutive even numbers, then one will be a multiple of 4 and the second even number will make the product into a multiple of eight.