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 = 12nn i=0n (ni) (n2i)

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.