For how many positive integers $n\le51$ is $\left\lfloor\frac{49}n\right\rfloor+\left\lfloor\frac{50}n\right\rfloor+\left\lfloor\frac{51}n\right\rfloor$ not divisible by $3$?
For $n>1$, the three floors are equal unless a multiple of $n$ is $50$ or $51$, and at most one of these is. If $n$ divides neither, the sum is $3q$. If $n\mid50$, the floors are $q-1,q,q$; if $n\mid51$, they are $q-1,q-1,q$; either way the sum is not a multiple of $3$. And $n=1$ gives $150$, a multiple of $3$.
$50=2\cdot5^2$ has $6$ divisors, and $51=3\cdot17$ has $4$.