Genocchi Number Calculator

Number Theory

Genocchi number G(2n)-155
Bernoulli number B(2n)5/66
Index 2n10
FormulaG(2n) = 2(1 - 2^(2n))B(2n)
How this was calculated
  1. The Genocchi numbers are defined by G(2n) = 2(1 - 2^(2n))B(2n), where B(2n) is a Bernoulli number. The odd Genocchi numbers are all 0 except G(1) = 1, so the even ones carry the sequence: -1, 1, -3, 17, -155, 2,073, ...
  2. B(10) = 5/66
  3. G(10) = 2 x (1 - 2^10) x B(10) = -155.
  4. The even Genocchi numbers alternate in sign in blocks and grow explosively: |G(16)| = 929,569 and |G(20)| already exceeds 11 million.

The Genocchi numbers are what happens when the Bernoulli numbers - those famously unruly fractions - are passed through one more transformation. Defined by G(2n) = 2(1 - 2^(2n))B(2n), the even Genocchi numbers are integers: -1, 1, -3, 17, -155, 2,073, -38,227, 929,569. They are named for the Italian mathematician Angelo Genocchi and they grow at a pace that makes factorials look relaxed.

This calculator computes them exactly. The Bernoulli numbers are generated as fractions by the Akiyama-Tanigawa algorithm - rational arithmetic throughout, no floating point - and the closed formula then yields an exact integer. G(10) = -155 comes from B(10) = 5/66; G(16) = 929,569 from B(16) = -3617/510. Every digit shown is a theorem.

The odd Genocchi numbers are a deliberate anticlimax: all zero except G(1) = 1. The even subsequence carries everything - the signs, the growth, the combinatorics - which is why the calculator, like the literature, indexes by 2n and reports the even values.

Worked examples

G(10) for n = 5

(One value G(2n) · 5 · 6)

Genocchi number G(2n)-155
Bernoulli number B(2n)5/66
Index 2n10
FormulaG(2n) = 2(1 - 2^(2n))B(2n)

G(16) for n = 8

(One value G(2n) · 8 · 6)

Genocchi number G(2n)929,569
Bernoulli number B(2n)-3617/510
Index 2n16
FormulaG(2n) = 2(1 - 2^(2n))B(2n)

List the first six even Genocchi numbers

(List the first values · 5 · 6)

Genocchi number G(2n)First 6 even Genocchi numbers
Largest |value|2,073
Count6
FormulaG(2n) = 2(1 - 2^(2n))B(2n)

From Bernoulli to Genocchi

The Bernoulli numbers B(0), B(1), B(2), ... = 1, -1/2, 1/6, 0, -1/30, 0, 1/42, ... appear wherever sums of powers and the zeta function meet. The Genocchi transformation takes the even Bernoulli number B(2n), multiplies by 2^(2n) - 1 (with a sign), and doubles: G(2n) = 2(1 - 2^(2n))B(2n). The denominators of the Bernoulli numbers - 6, 30, 42, 66, 510 - are exactly cancelled by the (2^(2n) - 1) factor, which is why integers come out.

Work G(10) by hand: B(10) = 5/66, and 2 x (1 - 2^10) x 5/66 = 2 x (-1,023) x 5/66 = -155, because 2 x 1,023 x 5 = 10,230 = 66 x 155 exactly. That cancellation, guaranteed by von Staudt-Clausen theory, is the small miracle the formula performs at every n.

Exact fractions, no floats

Bernoulli numbers punish floating point: their numerators and denominators explode, and G(16) already needs B(16) = -3617/510 exact to land on 929,569. The calculator therefore generates Bernoulli numbers with the Akiyama-Tanigawa algorithm in rational arithmetic - a simple triangular scheme of exact fraction additions and multiplications - and only converts to a decimal integer at the final step, where the answer is provably whole.

The practical consequence is trust: the value mode's output for n up to 16, and the list mode's first twelve values, are exact integers you can verify against the OEIS (A001469, absolute values) digit for digit. When a computation claims 929,569, 'approximately' would be a confession; here it is a derivation.

The sign pattern and the growth

The even Genocchi numbers alternate in sign in a strict rhythm: G(2) = -1, G(4) = 1, G(6) = -3, G(8) = 17, G(10) = -155, G(12) = 2,073, G(14) = -38,227, G(16) = 929,569. The sign of G(2n) is negative when n is odd and positive when n is even, because the factor (1 - 2^(2n)) is always negative and flips the Bernoulli number's own alternation.

Growth is savage: each step multiplies the magnitude by a factor in the dozens, driven by the 2^(2n) term and the Bernoulli numbers' own growth. |G(20)| exceeds 11 million, and by G(40) the values have dozens of digits. Sequences that grow this fast are usually useless for tables and perfect for identities - and Genocchi numbers live in identities, connecting to Euler numbers, up-down numbers and continued fractions.

What they count and connect

Genocchi numbers enumerate combinatorial objects in disguise: they relate to the Euler (secant and tangent) numbers, to Dumont's work on permutations with restricted patterns, and to the median Genocchi numbers that count certain up-down arrangements. The first median Genocchi values govern how many ways a row of people can be arranged so heights alternate under additional constraints - concrete questions with these integers as answers.

They also appear in the theory of the zeta function at negative integers, since B(2n) is essentially zeta at 1 - 2n up to a factor. A calculator page is a modest place for such company, but the numbers do not care where they are computed: G(16) is 929,569 in a research paper and on this page alike.

Genocchi, Bernoulli and Euler: keeping them straight

Three families tangle in students' notes. Bernoulli numbers: fractions, from power sums and zeta values. Euler (secant/tangent) numbers: integers from the series for sec and tan, counting alternating permutations. Genocchi numbers: integers built from Bernoulli numbers by the 2(1 - 2^(2n)) transform, related to both. The transform is the tell: if a formula contains B(2n) multiplied by a power-of-two term, Genocchi is nearby.

This page computes the Genocchi family only, but it shows the Bernoulli number behind each value in the result - B(10) = 5/66 behind G(10) - so the relationship stays visible instead of being flattened into a black box.

Using the calculator

Value mode takes n from 1 to 16 and returns G(2n) with its Bernoulli parent. List mode returns the first values of the even subsequence - six of them, G(2) through G(12), by default: -1, 1, -3, 17, -155, 2,073. Both are exact computations, not table lookups, so they double as a check on any table you are comparing against.

If a source lists Genocchi numbers as positive throughout, it is quoting absolute values (the OEIS A001469 convention). This page keeps the true signs, which the formula dictates; take absolute values mentally when comparing and the two will agree term for term.

The zeta connection

Bernoulli numbers are secretly values of the Riemann zeta function at negative integers: zeta(1 - 2n) = -B(2n) / (2n). The famous zeta(-1) = -1/12 is the case B(2) = 1/6. Genocchi numbers inherit this depth through their definition - each G(2n) is, up to elementary factors, a zeta value at a negative odd integer, dressed as an integer. The fractions cancel and the integers that remain are what this calculator prints.

It is worth pausing on how strange that is: the zeta function at negative integers is defined by analytic continuation, a sophisticated limiting process, yet the answers collapse into rationals whose transforms are plain integers like -155 and 2,073. The Genocchi numbers are the integer footprints of that machinery.

A hand-check: G(12) from B(12)

B(12) = -691/2730 is the Bernoulli number every student remembers, because 691 is the numerator that appears in Ramanujan's congruences and in the theory of irregular primes. Feed it through the formula: G(12) = 2 x (1 - 2^12) x (-691/2730) = 2 x (-4,095) x (-691) / 2,730. Now 4,095 / 2,730 = 1.5 exactly, so the value is 2 x 1.5 x 691 = 2,073 - matching the calculator and the sequence. The ugliest Bernoulli fraction produces one of the cleanest cancellations in the family.

Checks like this are the working mathematician's version of the calculator's exact-fraction policy: when a computation can be verified at a famous point by hand, the whole pipeline earns trust at the points that cannot.

Seidel's triangle and the median Genocchi numbers

Genocchi numbers also live in a triangle. Seidel's triangle - built by starting with 1 and alternately adding across rows - has the Euler zigzag numbers along its edges, and Dumont showed that the Genocchi numbers and their 'median' companions organise the triangle's interior structure: the first median Genocchi numbers count, among other things, certain alternating permutations with restricted patterns.

The combinatorial afterlife is typical of these Bernoulli-adjacent sequences: born in analysis, naturalised in combinatorics. A number that begins as a transform of B(2n) ends up counting arrangements of people and patterns of permutations, and both descriptions are exact.

Two values further out

The exact-fraction method continues to pay off beyond the list mode's default range. B(18) = 43867/798 gives G(18) = 2 x (1 - 2^18) x 43867/798: since 2 x 262,143 / 798 is exactly 657, the value collapses to -657 x 43,867 = -28,822,629. And B(20) = -174611/330 gives G(20) = 1,109,652,905, the division again coming out whole - 2,097,150 / 330 = 6,355 exactly - as the theory promises it always must.

These hand-checkable landings at n = 9 and n = 10 are the strongest advertisement for computing with fractions: a floating-point pipeline would print the same digits here, but only the exact pipeline can say why they are right, and the 'why' - the guaranteed cancellation - is the actual mathematics of the Genocchi definition.

FAQs

What is a Genocchi number?

An integer defined by G(2n) = 2(1 - 2^(2n))B(2n) from the Bernoulli numbers. The even values run -1, 1, -3, 17, -155, 2,073 and grow explosively.

What is G(10)?

-155, computed from B(10) = 5/66: 2 x (1 - 2^10) x 5/66 = -155.

What is G(16)?

929,569.

What are the first even Genocchi numbers?

G(2) to G(12): -1, 1, -3, 17, -155 and 2,073.

Why are the odd Genocchi numbers ignored?

They are all 0 except G(1) = 1, so the even subsequence contains all the structure.

How are Genocchi numbers computed exactly?

The Bernoulli numbers are generated as exact fractions (Akiyama-Tanigawa algorithm), then the closed formula is applied - the result is an exact integer with no floating point involved.

Why do some tables show only positive Genocchi numbers?

They list absolute values, as OEIS A001469 does. The signed values from the formula alternate; the magnitudes agree.

Who were the Genocchi numbers named for?

Angelo Genocchi, the 19th-century Italian mathematician who studied them.

Sources

Related calculators

Correlation Coefficient Calculator
Pearson's r for up to six paired observations, with r² and the deviation sums shown — the full workings, not just the headline number.
Lognormal Distribution Calculator
Compute the CDF, PDF, mean and median of a lognormal distribution from its log-scale mu and sigma.
Square Footage Calculator
Area of a rectangle in sq ft, m², sq yd and acres from length × width — with an optional per-square-foot cost estimate.