Euler Zigzag Number Calculator

Input

Euler zigzag number E(n)50,521
Previous zigzag number E(n-1)7,936
Number familySecant number (even index)
Growth ratio E(n) / E(n-1)6.37
How this was calculated
  1. The Euler zigzag numbers count alternating (up-down) permutations and appear as the Taylor coefficients behind the secant and tangent functions: even-indexed terms are the secant numbers, odd-indexed terms the tangent numbers.
  2. They satisfy the convolution recurrence 2E(k+1) = sum over j of C(k, j) E(j) E(k-j), which builds every term exactly with integer arithmetic.
  3. Running the recurrence up to k = 10 gives E(10) = 50,521, following E(9) = 7,936.
  4. E(10) is a secant number, and at this point the sequence is growing by a factor of about 6.37 per step.

The Euler Zigzag Number Calculator computes Euler zigzag numbers, the sequence that counts alternating (up-down) permutations and appears as the Taylor coefficients behind the secant and tangent functions. Even-indexed terms are the secant numbers and odd-indexed terms are the tangent numbers, so a single calculation covers both families. The tool returns the exact value for the index you enter: for example, E(6) = 61 and E(10) = 50,521, with E(9) = 7,936 before it. It also handles larger indices, such as E(12) = 2,702,765, which follows E(11) = 353,792.

The method behind the calculator is the convolution recurrence 2E(k+1) = sum over j of C(k, j) E(j) E(k-j), the standard definition used to generate the sequence term by term. Because each term is built from all earlier terms through binomial coefficients, the results are exact rather than rounded approximations. This matters as the numbers climb quickly: at n = 10 the sequence grows by a factor of 6.37 per step. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow every calculation and check the output yourself.

Worked examples

E10, a secant number

(10)

Euler zigzag number E(n)50,521
Previous zigzag number E(n-1)7,936
Number familySecant number (even index)
Growth ratio E(n) / E(n-1)6.37

E6

(6)

Euler zigzag number E(n)61
Previous zigzag number E(n-1)16
Number familySecant number (even index)
Growth ratio E(n) / E(n-1)3.81

E12

(12)

Euler zigzag number E(n)2,702,765
Previous zigzag number E(n-1)353,792
Number familySecant number (even index)
Growth ratio E(n) / E(n-1)7.64

Up-down permutations

An up-down permutation is an arrangement of numbers in which the values alternately rise and fall. Written out as a sequence, each entry is either larger than both of its neighbors or smaller than both — a peak, then a valley, then a peak again, with no two consecutive steps going the same direction. For example, 2, 5, 1, 4, 3 is up-down: it goes up to 5, down to 1, up to 4, down to 3. The same set of numbers can often be arranged this way in more than one order, and counting all the valid arrangements for a given size is exactly the job of an euler zigzag numbers calculator.

The Euler zigzag numbers count these alternating (up-down) permutations, and the same sequence appears as the Taylor coefficients behind the secant and tangent functions. That double identity is what makes the numbers unusual: a purely combinatorial question about orderings turns out to be governed by two familiar trigonometric functions. The split is clean. Even-indexed terms are the secant numbers, and odd-indexed terms are the tangent numbers. So the secant series carries the counts for alternating permutations of even length, while the tangent series carries the counts for odd length.

The values grow quickly. E(6) = 61 and E(10) = 50,521, with E(9) = 7,936 immediately before it. Continuing the sequence, E(12) = 2,702,765, following E(11) = 353,792. Reading those pairs side by side shows how sharply the counts climb as the permutation length increases — a jump of well over an order of magnitude between neighboring entries in the low teens.

The numbers are not computed one at a time in isolation. They satisfy the convolution recurrence 2E(k+1) = sum over j of C(k, j) E(j) E(k-j), which builds each new term from all the earlier ones combined with binomial coefficients. That recurrence is why a calculator can produce large entries reliably rather than by brute-force enumeration. The growth itself is steep: at n = 10 the count multiplies by a factor of 6.37 per step.

Even indices give the secant numbers; odd indices give the tangent numbers. Same sequence, two trigonometric homes.

Secant numbers and tangent numbers

The Euler zigzag numbers split cleanly into two families, and that split is one reason an euler zigzag numbers calculator is useful for checking your work. The sequence counts alternating (up-down) permutations, and the same numbers appear as the Taylor coefficients behind the secant and tangent functions. Even-indexed terms are the secant numbers; odd-indexed terms are the tangent numbers. Reading the sequence this way turns one long list into two shorter, easier-to-follow lists.

On the secant side, the even-indexed terms include E(6) = 61 and E(10) = 50,521. On the tangent side, the odd-indexed terms include E(9) = 7,936 and E(11) = 353,792. Notice how the values interleave: E(9) = 7,936 comes before E(10) = 50,521, and E(11) = 353,792 comes before E(12) = 2,702,765. The table below arranges these terms by parity so the interleaving is visible at a glance.

The growth is steep on both sides. At n = 10, the numbers grow by a factor of 6.37 per step, which is why the terms climb so quickly from the low hundreds into the millions. The values also satisfy the convolution recurrence 2E(k+1) = sum over j of C(k, j) E(j) E(k-j). That recurrence is what lets a calculator build each new term from the earlier ones rather than enumerating permutations directly. When you check a result, the recurrence gives you a second way to confirm a value: if a computed term does not fit the pattern formed by its predecessors, something has gone wrong.

The parity labels are worth keeping straight because they are easy to mix up. Secant numbers sit at even indices, and tangent numbers sit at odd indices. The names come from the secant and tangent functions whose Taylor coefficients these numbers are. So when you see E(6) = 61 and E(10) = 50,521, you are looking at secant numbers, while E(9) = 7,936 and E(11) = 353,792 are tangent numbers. Keeping the two lists separate makes it simpler to spot a term that belongs on the wrong side.

ParityFamilyIndexValue
EvenSecantE(6)61
EvenSecantE(10)50,521
OddTangentE(9)7,936
OddTangentE(11)353,792
Even index means secant number; odd index means tangent number. E(9) = 7,936 sits just before E(10) = 50,521, and E(11) = 353,792 sits just before E(12) = 2,702,765.

The convolution recurrence

The Euler zigzag numbers can be built one at a time from the terms that come before, and the rule that does it is a convolution recurrence: 2E(k+1) = sum over j of C(k, j) E(j) E(k-j). Read it as a recipe. To get the next term, you take every earlier term E(j), pair it with another earlier term E(k-j) so the two indices add up to k, multiply the pair together, and weight that product by the binomial coefficient C(k, j). Add all those weighted products, then divide by 2. Because the binomial coefficients and the zigzag numbers are both whole numbers, every step can be carried out in exact integer arithmetic. No rounding creeps in, and the result is the true integer, not an approximation.

The pairing structure is what makes the recurrence a convolution. The weights C(k, j) count how many ways to choose which positions belong to one factor, which is why the rule is sometimes described as a binomial convolution. In an euler zigzag numbers calculator, this is the engine under the hood: each new term depends on the full list of earlier ones, so the values are produced in order, starting from the smallest indices and working upward. The even-indexed terms that come out are the secant numbers, and the odd-indexed terms are the tangent numbers, the same quantities that appear as Taylor coefficients behind the secant and tangent functions.

A few concrete values show the sequence in motion. E(6) = 61, and by the time the index reaches 10 the numbers have grown large: E(9) = 7,936 and E(10) = 50,521. The next pair continues the climb, with E(11) = 353,792 and E(12) = 2,702,765. At n = 10 the sequence grows by a factor of about 6.37 per step, so each new term is roughly six times the one before. That rapid growth is exactly why exact integer arithmetic matters here: the counts are large, and an approximate method would lose digits that the recurrence is supposed to deliver precisely.

Working the recurrence by hand for small indices is feasible, but the binomial weights and the growing terms quickly make it tedious. A calculator that applies the convolution directly avoids that labor while preserving the exactness of the result. The key point to remember is that the rule is self-contained: given the early terms, every later term is fixed by the sum of weighted products of earlier ones, divided by two. Nothing else is needed, and no term has to be estimated.

The recurrence 2E(k+1) = sum over j of C(k, j) E(j) E(k-j) uses only earlier terms and whole-number weights, so each zigzag number is computed exactly.

How fast they grow

Euler zigzag numbers do not grow politely. Each step up the sequence multiplies the previous term by a factor that is itself climbing, so the numbers accelerate away from anything you could write out by hand. Looking at the ratios between consecutive terms shows this plainly: at n = 6 the sequence grows by a factor of 3.81 per step, at n = 10 the factor is 6.37, and by n = 12 it has reached 7.64. The multiplier is not constant — it rises as n rises, which is why the later terms dwarf the earlier ones so completely.

The concrete values make the acceleration visible. E(6) is 61, and E(10) is 50,521 — a jump of roughly three orders of magnitude across just four indices, consistent with the 3.81 and 6.37 growth factors at those points. The step from E(9) = 7,936 to E(10) = 50,521 is the 6.37 factor in action. Then E(11) = 353,792 and E(12) = 2,702,765, a step governed by the 7.64 ratio. Notice that the jump from E(11) to E(12) is proportionally larger than the jump from E(9) to E(10): the sequence is not merely growing, it is growing faster.

This behavior is built into the structure of the numbers. The even-indexed terms are the secant numbers and the odd-indexed terms are the tangent numbers, the Taylor coefficients behind the secant and tangent functions. Those functions have singularities that push their coefficients toward factorial-like growth, which is the underlying reason a fixed multiplier never holds. The convolution recurrence 2E(k+1) = sum over j of C(k, j) E(j) E(k-j) ties every term to all the earlier ones, so each new value inherits and compounds the size of everything before it. That is why a single step near n = 12 already multiplies by 7.64.

For anyone using an euler zigzag numbers calculator, this growth pattern has a practical consequence: the values stay comfortably manageable through the low teens, but the ratios keep climbing, so later indices produce numbers that quickly become unwieldy to display or compare by eye. The three ratios — 3.81, 6.37 and 7.64 — are the clearest short summary of that trend. They show a sequence whose per-step multiplier rises with n, matching the recurrence's self-referential structure and the factorial-like pull of the secant and tangent coefficients.

  • n = 6: growth factor 3.81 per step (E(6) = 61)
  • n = 10: growth factor 6.37 per step (E(10) = 50,521, after E(9) = 7,936)
  • n = 12: growth factor 7.64 per step (E(12) = 2,702,765, after E(11) = 353,792)
The multiplier itself grows: 3.81 at n = 6, 6.37 at n = 10, and 7.64 at n = 12.

FAQs

What are the Euler zigzag numbers?

The Euler zigzag numbers count the alternating permutations of n elements. They are also the Taylor coefficients of the secant plus tangent series. The sequence starts 1, 1, 1, 2, 5, 16, 61. So the first few entries are small, but the numbers grow quickly as n increases.

What is E(10)?

E(10) equals 50,521. Because 10 is even, this value is a secant number rather than a tangent number. It sits in the same zigzag sequence that starts 1, 1, 1, 2, 5, 16, 61, and it is much larger than the early terms because the sequence grows quickly.

What is the difference between secant and tangent numbers?

They are the same sequence split by position. Even indices give the secant numbers, such as E(12) = 2,702,765. Odd indices give the tangent numbers, such as E(11) = 353,792. So the secant and tangent names describe where a value falls in the single Euler zigzag sequence.

How are they calculated?

They are calculated by the convolution recurrence 2E(k+1) = sum of C(k, j) E(j) E(k-j). This recurrence stays in exact integers, so no rounding is involved. Each new value is built from earlier values in the sequence, which is why the early terms 1, 1, 1, 2, 5, 16, 61 can be extended reliably.

What is E(6)?

E(6) equals 61. It follows E(5) = 16 in the zigzag sequence, which starts 1, 1, 1, 2, 5, 16, 61. Because 6 is even, E(6) is a secant number. The jump from 16 to 61 shows how quickly these counts grow as n increases.

Where do zigzag numbers appear?

Zigzag numbers appear in the combinatorics of alternating permutations, where they count arrangements that rise and fall in turn. They also appear in the series expansions of the trigonometric secant and tangent functions. That double role is why even indices are called secant numbers and odd indices tangent numbers.

Sources

Related calculators

Bernoulli Number Calculator
Exact Bernoulli numbers B(n) as fractions by the Akiyama-Tanigawa algorithm, with the decimal value, numerator and denominator.
Gamma Function Calculator
The gamma function for any real input — the factorial extended to fractions and negatives — computed with the Lanczos approximation, with log-gamma alongside.
Stirling Numbers Calculator
Stirling numbers of the second kind S(n, k) - the ways to partition n items into k groups - with the Bell number.