Denert on Permutation
Sum of the excedance positions, plus the inversions within each of the excedance and non-excedance subwords.
Foata–Zeilberger's den (FindStat St000156). Mahonian, and (Excedances, Denert) is equidistributed with (Descents, MajorIndex) — checked in tests/permutation.test.ts. Moved off the frontier: it needs no fold, just same-block inversion counting.
Called as CombinatorialStat(x, "Denert"). The head's page has its examples.