Euler Zigzag Calculator

sec(x)+tan(x) coefficients

CalculatorsFreeNo Signup
4.7(156 reviews)
All Tools

Loading tool...

About Euler Zigzag Calculator

An Euler zigzag number calculator computing E_n: 1,1,1,2,5,16,61,272,1385,7936... Counts alternating permutations of {1,...,n}. E_n = n! · [x^n] (sec(x)+tan(x)). Even: secant numbers. Odd: tangent numbers. Client-side.

Euler Zigzag Calculator Features

  • E_n value
  • Sequence
  • sec/tan link
  • Alternating perms
  • Growth rate
Euler zigzag numbers: E_0=1, E_1=1, E_2=1, E_3=2, E_4=5, E_5=16, E_6=61, E_7=272... Count alternating permutations of [n]. Generating function: sec(x)+tan(x) = Σ E_n·x^n/n!. Even indices: secant numbers. Odd: tangent numbers.

How to Use

Enter n:

  • E_n: Zigzag number
  • Sequence: E_0..E_n
  • Type: Secant or tangent

Alternating Perms

1: {1}. 2: {1,2}→only 1 (trivially). 3: all down-up perms of {1,2,3}: 132, 231 → E_3=2. For n=4: 2143, 3142, 3241, 4132, 4231 → E_4=5. Each is a zigzag: up-down-up-down...

Analysis Connection

sec(x) = Σ E_{2n}·x^{2n}/(2n)! and tan(x) = Σ E_{2n+1}·x^{2n+1}/(2n+1)!. So zigzag numbers encode the Taylor series of sec and tan simultaneously!

Step-by-Step Instructions

  1. 1Enter n.
  2. 2Compute E_n.
  3. 3Classify sec/tan.
  4. 4View sequence.
  5. 5See growth.

Euler Zigzag Calculator — Frequently Asked Questions

Why 'zigzag'?+

An alternating permutation zigzags: up-down-up-down... Like a zigzag line. E_n counts these zigzag permutations. André (1879) first proved E_n = n![x^n](sec x + tan x), connecting combinatorics to analysis.

How fast do they grow?+

E_n ~ 2·(2/π)^{n+1}·n!. Compare to n! — zigzag numbers grow like n! divided by (π/2)^n. This reflects that roughly (2/π)^n fraction of all permutations are alternating.

What about signed Euler numbers?+

The 'signed' Euler numbers E*_n (from sec: Σ E*_n·x^{2n}/(2n)!) alternate: 1,-1,5,-61,1385... These are E*_n = (-1)^n · E_{2n}. They appear in the Taylor series of sech(x) = 1/cosh(x) as well.

Share this tool: