Tangent Number — Definition, Formula & Example
A tangent number is one of the whole numbers 1, 2, 16, 272, 7936, ... that appear when you write the Taylor series of with factorials in the denominators. Each one also counts the zigzag arrangements of an odd number of distinct objects.
For , the tangent number is times the coefficient of in the Maclaurin series of . Equivalently, is the number of permutations of that satisfy . These are called alternating permutations. Tangent numbers are the odd-indexed Euler zigzag numbers , defined by . The even-indexed zigzag numbers are the secant numbers. Because of this, tangent numbers are also called zag numbers.
Key Formula
Where:
- = The tangent number with odd index 2n − 1 (a positive integer)
- = A positive integer, n = 1, 2, 3, ...
- = The Bernoulli number with even index 2n
- = The input to tan x, measured in radians, with |x| < π/2
Worked Example
Problem: The Maclaurin series of begins . Find the tangent numbers , , and .
Step 1: Multiply the coefficient of by . The result says there are 2 zigzag orderings of three objects: 132 and 231.
Step 2: Multiply the coefficient of by . Check it with the Bernoulli formula using and : .
Step 3: Multiply the coefficient of by .
Answer: , , and . For example, exactly 16 of the 120 orderings of alternate up, down, up, down.
Why It Matters
Tangent numbers connect calculus, where they appear in the Taylor series of tan x, to counting, where they count alternating permutations. They also differ from Bernoulli numbers in a useful way. Bernoulli numbers are fractions, and most odd-indexed ones are zero. Tangent numbers are positive integers that carry the same information. For that reason, algorithms such as Knuth and Buckholtz's 1967 method compute tangent numbers with whole-number arithmetic and then convert them to Bernoulli numbers.
Common Mistakes
Mistake: Mixing up index conventions. For example, you read '' in one source and '' in another.
Correction: Some sources index by the odd power of (). Others count consecutively (). Check which convention your source uses before you apply a formula.
