Correct option is 2
Let M be the mass of the chain and L its length.
If a length l hangs over the edge of the table, the force pulling the chain down is M/L lg.
The force of friction between the rest of the chain of length (L-l) and the table is μM(L-1)/L g.
For equilibrium the two forces must be equal: