WORKED DEFAULT
Check the calculation with the default inputs
For n = 5 distinct labels, the Euler zigzag number is 16 alternating permutations.
- Choose labelsn = 5
- Build Entringer row0, 2, 4, 5, 5, 16
- Read final entry16 permutations
PERMUTATIONS / ALTERNATING ORDER
Count alternating permutations of n distinct labels using the Euler zigzag or up-down convention.
METHOD / WORKED EXAMPLE
Count alternating permutations of n distinct labels using the Euler zigzag or up-down convention. The result panel keeps the defining recurrence or counting identity visible so the output can be checked independently.
WORKED DEFAULT
For n = 5 distinct labels, the Euler zigzag number is 16 alternating permutations.
READ THE RESULT
The count uses one alternating orientation; reversing every permutation gives the equivalent opposite orientation count.
ASSUMPTIONS AND LIMITS
n is capped at 19 so the exact alternating-permutation count remains a safe integer.
COMMON QUESTIONS
Build Entringer rows from E(0,0)=1; cumulative reflected entries produce the alternating-permutation total at the row end. The indexing and counted objects are stated in the method and worked example. Inputs must be whole numbers inside the displayed domain; the page never rounds a decimal into an accepted index. This ties the answer to one explicit convention instead of silently mixing sequence offsets or combinatorial interpretations.
The count uses one alternating orientation; reversing every permutation gives the equivalent opposite orientation count. Small boundary cases and the displayed identity provide useful independent checks. Recompute the displayed recurrence or closed form with the same inputs and compare its previous terms or counting factors. That check supports this bounded result, but it does not transfer the interpretation to a different sequence or counting object.
n is capped at 19 so the exact alternating-permutation count remains a safe integer. The implementation uses integer arithmetic internally and refuses results beyond the safe display boundary. Combinatorial and recurrence values can grow rapidly even when the inputs look small. The conservative cap prevents browser stalls and avoids presenting an unsafe floating-point integer as exact; larger work needs arbitrary-precision software and independent resource controls.
RELATED TOOLS
Use boundary
Build Entringer rows from E(0,0)=1; cumulative reflected entries produce the alternating-permutation total at the row end.
E(n,k)=E(n,k-1)+E(n-1,n-k).