Let $\epsilon>0$ as well as $n \in \mathbf{N}$ and $p=n^{-(1+\epsilon)}$. I want to show that a random graph in $G(n,p)$ a.a.s. does not contain a $C_4$ (I hope this is true?). My attempt was the following. Let $a,b,c,d$ be $4$ vertices and define $$X_{a,b,c,d}:=\begin{cases} 1, a,b,c,d \text{ form a cycle }\\ 0, \text{else}. \end{cases}$$ Then we have that $X:=\sum_{a,b,c,d} X_{a,b,c,d}$ satisfies: $$P(G \ \text{contains} \ C_4)=P(X \geq 1) \leq \sum_{a,b,c,d} P(X_{a,b,c,d}=1)=\binom{n}{4}p^4 \leq n^4 (n^{-4-4\epsilon})=n^{-4\epsilon} \to 0.$$
Are my calculations correct? I am really bad at probability theory, hence I fear that my probability might not be correct, but I am not sure. Thanks in advance for any comment!
The result $\binom n4 p^4$ is not quite right - but it is right up to a constant factor, so you still get the same idea.
There are two ways to correct it.
The second method gives us $3\binom n4 p^4$ for the expected value; the first gives us $3 \binom n4 p^4 - 2 \binom n4 p^5$, which is the same up to a lower-order term. (The difference is because they are counting slightly different things, though either one being $0$ is still enough to conclude that $G(n,p)$ has no $4$-cycles.) When $p = n^{-1-\epsilon}$, both of these still go to $0$ as $n \to \infty$.