Assumptions
I take ℓ=2 and an odd prime p. The source triple avoids the final two destination positions.
Result
Reflecting the labels and swapping the final two positions gives H(r)+H(−r)=2N/p. I verify H(0)=N/p in 126 exhaustive classes, including all twelve nonuniform histograms with balanced zero in the census.
Prior work
Blanco, Buehrle & Patidar, On the number of pancake stacks requiring four flips to be sorted · Granville & Kurlberg, Poisson statistics via the Chinese remainder theorem · Zaks, A new algorithm for generation of permutations · Helmert & Röger, Relative-Order Abstractions for the Pancake Problem
Next question
Explain the nonzero residue profile and the defect for the filter modulo 6.
Read the argument and prior work · View supporting evidence