<imgclass="img-responsive center-block"alt="Sierpinski graphs of order-1 to order-5"src="https://cdn.freecodecamp.org/curriculum/project-euler/cyclic-paths-on-sierpinski-graphs-1.gif"style="background-color: white; padding: 10px;">
Let $C(n)$ be the number of cycles that pass exactly once through all the vertices of $S_n$. For example, $C(3) = 8$ because eight such cycles can be drawn on $S_3$, as shown below:
<imgclass="img-responsive center-block"alt="eight cycles that pass exactly once through all vertices of S_3"src="https://cdn.freecodecamp.org/curriculum/project-euler/cyclic-paths-on-sierpinski-graphs-2.gif"style="background-color: white; padding: 10px;">