Let $n\ge2$ be a natural number. Consider the graph $G=(V,E)$ where $V=\{0,1,2,...,n\}$ and $E=(\{0,1\},\{0,2\},...,\{0,n\})\cup(\{1,2\},...,\{n−1,n\})\cup(\{n,1\})$
For paths, it's a sequence of (non-repeating) vertices. For cycles, we only distinguish them if they form different subgraphs.
How many paths of length $2$ are there in $G?$ How many paths of length $3$ are there in $G?$ How many cycles are there in $G?$
I can obviously draw out the first couple cases and count this, but there has to be a summation formula or something I'm missing...
The graph you are describing is a Wheel graph: http://en.wikipedia.org/wiki/Wheel_graph
To get the number of $P_{3}$ (a path of length $2$, which has $3$ vertices) in the graph, you consider the paths along the exterior of the graph. There are $n$ such paths, where $n = |V|$. Then you look at the interior paths (only interior edges are used) through the center vertex, which forms an arithmetic progression $\sum_{i=1}^{n-1} i$. Finally, you count paths using an exterior and an interior edge. You again get $n$ such paths.
To count cycles, you have $C_{i}$, for $i \in \{3, ..., n\}$, for $n \geq 3$.