Jacobsthal Number Calculator

Find the Jacobsthal number at any index from a two term rule with a doubled predecessor, with growth shown.

Math and PercentUpdated 2026-11-182 min read
Jacobsthal Number Calculator
A whole number from 0 to 200.
Jacobsthal number J(n)
...
Previous term...
Growth from previous...

What it does

The Jacobsthal numbers begin 0, 1, 1, 3, 5, 11, 21 and 43. Each term is the previous term plus twice the one before it. The extra factor of two makes the sequence grow almost twice as fast as the Fibonacci numbers.

The sequence is named after Ernst Jacobsthal, a German mathematician who studied it in the early twentieth century. It has a simple closed form: J(n) equals two to the n minus minus one to the n, all divided by three. That formula explains the alternating small correction around a pure power of two.

Jacobsthal numbers count certain tilings with squares and dominoes where the pieces have different weights, and they appear in problems about the number of ways to write an integer in a particular binary form.

This page walks the recurrence forward from the two seeds using exact integer arithmetic. It reports the term, its predecessor and their ratio, with the ratio marked as not available where the predecessor is zero.

The index limit is 200. By then the values are large but still easy to print in full, and the ratio is visually indistinguishable from two.

How to use

  1. Enter an index n from 0 to 200.
  2. Read J(n) from the main result box.
  3. Check the previous term and the growth beside it.
  4. The default index 10 reproduces the worked example.
  5. Try index 5 to confirm the value 11.
  6. Use the closed form to verify a small term by hand.

Formula

J(0) = 0, J(1) = 1, and J(n) = J(n - 1) + 2 x J(n - 2) for n >= 2
n
The index in the sequence.
J(n)
The Jacobsthal number at that index.
J(n - 2)
The term two places back, doubled in the recurrence.

The closed form is J(n) = (2^n - (-1)^n)/3. For even n the numerator is one less than a power of two, and for odd n it is one more, which is why division by three is always exact. The characteristic roots are 2 and minus 1, so the dominant root 2 controls the long term ratio.

Worked example

Example: J(10)

The page opens with index 10.

  1. Start from J(0) = 0 and J(1) = 1.
  2. Compute J(2) = 1 + 2 x 0 = 1.
  3. Compute J(3) = 1 + 2 x 1 = 3.
  4. Compute J(4) = 3 + 2 x 1 = 5.
  5. Continue with J(5) = 11, J(6) = 21, J(7) = 43, J(8) = 85 and J(9) = 171.
  6. Compute J(10) = 171 + 2 x 85 = 341.
  7. The tool reports 341, previous term 171, and growth 1.99x.

Reference table

Jacobsthal numbers at small indices
nJ(n)PreviousGrowth
00n/an/a
110n/a
3313.00x
51152.20x
885431.98x
103411711.99x

Limits

  • Indices above 200 are rejected to keep the output readable.
  • The growth is reported as not available at index 1, where the predecessor is zero.
  • The closed form is discussed but not used by the engine.
  • The ratio column is rounded to two decimals.

Common mistakes

  • Using J(n - 1) plus J(n - 2) without the factor of two.
  • Starting from 0 and 2 instead of 0 and 1.
  • Forgetting the alternating sign in the closed form.
  • Assuming the ratio equals two exactly at small indices.
  • Dividing by three in the closed form and rounding rather than using exact division.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is J(10)?

J(10) = 171 + 2 x 85 = 341, matching (2^10 + 1)/3.

What is J(5)?

J(5) = 11.

What is J(8)?

J(8) = 85.

Questions

Who were these numbers named after?

They are named after Ernst Jacobsthal, who studied the recurrence in the early 1900s.

What is the closed form?

J(n) equals two to the n minus minus one to the n, divided by three.

Why is the growth near two?

The dominant characteristic root is 2, while the other root has magnitude 1.

Are there Jacobsthal primes?

Yes, Jacobsthal numbers that are prime are studied in their own right.

Are the terms exact?

Yes. The recurrence uses only integer multiplication and addition.

What index range is accepted?

Zero through 200.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.