I feel that the second one is only going to be possible to find computationally (although feel free to prove me wrong). The primes dividing Mersenne numbers are difficult to guess -- so we can't exclude some prime $p<n$ from dividing $2^n-1$ without testing (although, of course we can exclude every $p>n$).
So, for each prime $p<n$ we can find the largest $x$ such that $p^x$ divides both $n!$ and $2^n-1$, then combine the results using the Chinese Remainder Theorem. Some tips:
- The largest $a$ such that $p^a$ divides $n!$ is $a=\sum_{k \geq 1} \lfloor n/p^k \rfloor$.
- Then we can use Euler's Theorem to reduce the amount of computation required to find $2^n-1 \pmod {p^a}$ (or if you use some computer algebra system it'll do this for you).
There's approximately 60 million primes to process, so it will take a while, but it's not out-of-the-question.