Consider an undirected random graph of $n$ vertices. The probability that there is an edge between a pair of vertices is $\frac{1}{2}$. What is the expected number of simple (no vertex more than once), unordered cycles of length $k$ with $k\leq n$ ?
The approach that I took was as follows.
Let $X$ be the random variable denoting the number of undirected cycles of length $k$. Clearly $X$ can takes values from $\left\{0,1,2,\ldots,{\dbinom{n}{k}}\right\}$. We need to find $\mathbf E(X)$.
Since $X$ is a discrete random variable, by definition we have:$$\mathbf E(X)=\sum_{x\in X}x\cdot \Pr(X=x)=\sum_{i=0}^{\binom{n} k}i\cdot \Pr(X=i)$$ where, $\Pr(X=i)$ is the probability of number of simple, undirected cycles of length $k$ being $i$.
And here is where I'm stuck. Can anyone help me finding a convenient way of computing $\Pr(X=i)$.