Return to the Origin

A simple random walk on the hypercube Qn starts at 000…0 and takes ℓ steps, each flipping one coordinate chosen uniformly at random. How often is it home at the end?

walks
0
returned
0
expected returns
0.0
observed frequency
—
no walks yet
expected probability
—
pℓ = 12n⁢nℓ ∑i=0n (ni) (n−2⁢i)ℓ

Observed frequency against walks sampled

hover for values

Made for Math 372: Combinatorics at Reed College, fall 2026. The closed form is the spectral count of closed walks on the cube, divided by the number of walks: tr Aℓ / (2n nℓ). Part of e-infinity.space/viz.