Although you didn't say so in the question, your title indicates that you want a formula in propositional logic. So I'd express "each pigeon is in a hole" as
$$
\bigwedge_{i=1}^{n+1}\bigvee_{j=1}^n p[i,j],
$$
and I'd express "some hole contains two distinct pigeons" as
$$
\bigvee_{j=1}^n\bigvee_{1\leq i<k\leq n+1}(p[i,j]\land p[k,j]).
$$
Finally, I'd express the pigeonhole principle as the implication from the first of these formulas to the second. HOWEVER, some people understand the pigeonhole principle as including the additional hypothesis that each pigeon is in only one hole, which is formulated as
$$
\bigwedge_{i=1}^{n+1}\bigwedge_{1\leq j<k\leq n}\neg(p[i,j]\land p[i,k]).
$$
As for the length of the formula, that depends not only on whether you include the extra hypothesis but also on the details of the definition of length --- do you count occurrences of atomic formulas, or occurrences of connectives, or both, or something else?