Jacobsthal Number Calculator

Input

Jacobsthal number J(n)341
Previous Jacobsthal number J(n-1)171
Next Jacobsthal number J(n+1)683
Closed-form check (2^n - (-1)^n) / 3341
Ratio to previous term1.9942
How this was calculated
  1. Jacobsthal numbers follow the recurrence J(n) = J(n-1) + 2J(n-2), starting from J(0) = 0 and J(1) = 1.
  2. Counting up the recurrence to n = 10 gives J(10) = 341, between J(9) = 171 and J(11) = 683.
  3. The closed form (2^n - (-1)^n) / 3 agrees: (2^10 - 1) / 3 = 341.
  4. Consecutive Jacobsthal numbers approach a ratio of 2: J(10) / J(9) = 1.9942.

The Jacobsthal Number Calculator computes the Jacobsthal number at any position you enter, using the recurrence J(n) = J(n-1) + 2J(n-2) with starting values J(0) = 0 and J(1) = 1. So J(10) comes out to 341, which sits between J(9) = 171 and J(11) = 683, and J(20) comes out to 349,525. You get the exact term for your chosen n, not an approximation, and the page also shows the neighboring terms so you can see how the sequence builds from one value to the next.

The method behind the answer is the sequence's own defining recurrence, applied step by step from the known starting values, which is why it is the accepted standard for this calculation: each term follows directly from the two before it. The closed form (2^n - (-1)^n) / 3 reproduces every term, and for n = 15 it gives (2^15 + 1) / 3 = 10,923. The recurrence also explains the ratio behavior: consecutive terms approach 2, with J(10) / J(9) = 1.9942 and J(15) / J(14) = 2.0002. This page shows the formula, the step-by-step workings, worked examples and sources, so you can check each result yourself rather than take it on trust.

Worked examples

J(10)

(10)

Jacobsthal number J(n)341
Previous Jacobsthal number J(n-1)171
Next Jacobsthal number J(n+1)683
Closed-form check (2^n - (-1)^n) / 3341
Ratio to previous term1.9942

J(15)

(15)

Jacobsthal number J(n)10,923
Previous Jacobsthal number J(n-1)5,461
Next Jacobsthal number J(n+1)21,845
Closed-form check (2^n - (-1)^n) / 310,923
Ratio to previous term2.0002

J(20)

(20)

Jacobsthal number J(n)349,525
Previous Jacobsthal number J(n-1)174,763
Next Jacobsthal number J(n+1)699,051
Closed-form check (2^n - (-1)^n) / 3349,525
Ratio to previous term2.0000

A Fibonacci cousin with a doubled step

The Jacobsthal numbers are built from a recurrence that looks familiar at first glance: J(n) = J(n-1) + 2J(n-2), starting from J(0) = 0 and J(1) = 1. Compare that with the Fibonacci rule, where each term is simply the sum of the two before it. Here the older term — the one two steps back — is doubled before it is added. That single factor of 2 is the whole difference, and it changes the pace of growth dramatically. A jacobsthal number calculator applies this rule term by term, so you can watch how quickly the doubling takes over.

The early terms stay modest, but the effect compounds. By the tenth index the sequence has reached J(10) = 341, which sits between J(9) = 171 and J(11) = 683. Notice that 683 is close to twice 341, while 341 is close to twice 171. The gap to the next term keeps widening in step with the values themselves. Jump ahead and J(20) = 349,525 — a number far larger than anything Fibonacci produces at the same index, because Fibonacci's growth factor is about 1.618 while Jacobsthal's is closer to 2.

That ratio is the clearest way to see the doubled step at work. Consecutive terms approach a ratio of 2: J(10) / J(9) = 1.9942, and by J(15) / J(14) = 2.0002 the ratio has essentially settled at 2. In Fibonacci, the corresponding ratio settles near 1.618, the golden ratio. So the same two-term memory produces a much steeper curve once the older term is weighted twice as heavily.

There is also a closed form that skips the step-by-step buildup entirely: (2^n - (-1)^n) / 3. It reproduces every term of the sequence. For n = 15 it gives (2^15 + 1) / 3 = 10,923. The alternating sign is what keeps the formula exact for both even and odd indices — without it, the division by 3 would not come out clean. This formula is a handy check on any hand calculation, and it explains why powers of 2 dominate the size of each term.

For a general audience, the practical takeaway is simple: Jacobsthal numbers grow roughly like powers of 2, so they climb much faster than Fibonacci numbers of the same index. Small differences in the recurrence — here, one coefficient of 2 — produce large differences in the values. Use the calculator to generate terms, confirm a closed-form result, or compare the sequence side by side with Fibonacci and see the divergence for yourself.

Key contrast: Fibonacci adds the two previous terms; Jacobsthal adds the previous term plus twice the term before that. The result is a ratio that converges to 2 rather than to the golden ratio of about 1.618.

Recurrence versus closed form

A Jacobsthal number calculator can produce a term in two very different ways, and comparing them is a good way to check that you understand the sequence. The definitional route is the recurrence J(n) = J(n-1) + 2J(n-2), starting from J(0) = 0 and J(1) = 1. Each new term is the previous term plus twice the term before that. The alternative route is the closed form (2^n - (-1)^n) / 3, which takes only the index n and returns the term directly, with no need to build up the sequence step by step.

The two methods agree at every index. Take n = 10. Working through the recurrence from the seeds gives J(10) = 341, a value that sits between J(9) = 171 and J(11) = 683. Applying the closed form to the same index gives (2^10 - 1) / 3, since 10 is even and (-1)^10 equals 1; that also comes to 341. The small table below lays out early terms next to the closed-form expression for each one, so you can see the arithmetic line up term by term.

The pattern holds as the index grows. At n = 15 the closed form gives (2^15 + 1) / 3 = 10,923, because 15 is odd and (-1)^15 equals -1, which flips the sign inside the parentheses. Further out, J(20) = 349,525. In each case the recurrence and the closed form land on the same integer, which is exactly what the closed form is designed to guarantee: it reproduces every term of the sequence.

The closed form also explains the sequence's growth. Because the dominant piece is 2^n divided by 3, consecutive terms approach a ratio of 2. The approach is visible in the numbers: J(10) / J(9) = 1.9942, and by J(15) / J(14) = 2.0002 the ratio has closed in on 2 almost completely. The alternating (-1)^n term is what keeps the ratio slightly below or above 2 rather than exactly on it, and its influence shrinks as n gets larger.

In practice, the recurrence is the safer choice for a hand calculation or a simple loop, since it needs only addition and doubling and cannot introduce rounding error. The closed form is convenient when you want a single term at a large index without computing everything before it. Running both and checking that they match is a quick sanity test — and if a jacobsthal number calculator returns a value that disagrees with either method, the input or the implementation is worth a second look.

nClosed formJ(n)
0(2^0 - 1) / 30
1(2^1 + 1) / 31
9(2^9 + 1) / 3171
10(2^10 - 1) / 3341
11(2^11 + 1) / 3683
15(2^15 + 1) / 310,923
20(2^20 - 1) / 3349,525
Both routes to J(10) give 341: the recurrence builds it from J(9) = 171 and J(8), while the closed form computes (2^10 - 1) / 3 directly.

Where Jacobsthal numbers turn up

Jacobsthal numbers are best known as a number sequence, but they also count something concrete: tilings. In the standard interpretation, J(n) counts the ways to tile a row of length n using 1×1 squares and 2×1 dominoes, where each domino can be colored in one of two ways. That is exactly why the recurrence J(n) = J(n-1) + 2J(n-2) holds, starting from J(0) = 0 and J(1) = 1. The last tile is either a single square, leaving a row of length n-1, or a two-color domino, leaving a row of length n-2 with two choices for its color. A jacobsthal number calculator makes this growth easy to inspect: J(10) = 341, sitting between J(9) = 171 and J(11) = 683, so the tiling counts climb quickly as the row gets longer.

The growth itself has a clean structure. Consecutive terms approach a ratio of 2, which matches the 2J(n-2) term in the recurrence. The approach is visible in the numbers: J(10) / J(9) = 1.9942, while J(15) / J(14) = 2.0002. The closed form (2^n - (-1)^n) / 3 reproduces every term exactly, so you do not need to iterate the recurrence to reach a large index. For n = 15 it gives (2^15 + 1) / 3 = 10,923. By n = 20 the count is J(20) = 349,525, a reminder of how fast two-colored domino choices multiply.

Jacobsthal numbers also have a companion sequence, the Jacobsthal-Lucas numbers. Where the Jacobsthal sequence starts from 0 and 1, the companion sequence starts from 2 and 1 and follows the same recurrence pattern with the same 2J(n-2) term. The two sequences are linked: each Jacobsthal-Lucas term can be written in terms of Jacobsthal terms at the same index, and the pair together satisfies identities that mirror the Fibonacci and Lucas relationship. The companion sequence is useful when you want a second view of the same underlying growth, since its terms track the same doubling behavior.

For a general audience, the practical takeaway is that Jacobsthal numbers are not just abstract. They count colored domino tilings, they grow at a rate close to 2 per step, and they come with a companion sequence that shares the same recurrence. If you are checking a value by hand, the closed form gives a quick cross-check against the recurrence, and the ratio of consecutive terms tells you roughly how much larger the next count will be. A jacobsthal number calculator is most useful when you want to confirm a specific term, such as J(10) = 341 or J(20) = 349,525, without working through every intermediate step.

Quick check: the closed form (2^n - (-1)^n) / 3 must match the recurrence for every n. At n = 15 it gives (2^15 + 1) / 3 = 10,923.

Growth toward a ratio of 2

The Jacobsthal sequence grows quickly, and the pattern of that growth is one of its most striking features. Each term is built from the one before it plus twice the term before that, following J(n) = J(n-1) + 2J(n-2) from J(0) = 0 and J(1) = 1. Because the recurrence adds a doubled older term, the sequence roughly doubles with each step, though the doubling is not exact at small values. A jacobsthal number calculator makes it easy to generate a long run of terms and watch how the ratio between consecutive terms settles toward 2.

You can see the approach clearly by comparing adjacent terms. J(10) = 341, which sits between J(9) = 171 and J(11) = 683. Dividing J(10) by J(9) gives 1.9942 — close to 2, but still a bit below it. Move further out and the gap narrows: J(15) / J(14) = 2.0002. The ratio has crossed just past 2 and is now within a few ten-thousandths of it. The oscillation around 2, first under and then slightly over, comes from the alternating sign in the sequence's closed form, and it shrinks as n grows.

The closed form (2^n - (-1)^n) / 3 reproduces every term, and it explains the ratio behavior directly. For n = 15 it gives (2^15 + 1) / 3 = 10,923. Since the 2^n part dominates as n increases, the (-1)^n term becomes proportionally tiny, so the ratio of consecutive terms is pulled toward 2. That is why the values at n = 10 and n = 15 are already so close to 2, and why the convergence only tightens from there.

The growth is dramatic over longer spans. By n = 20 the sequence reaches J(20) = 349,525, a large jump from the four-digit value at n = 15. This combination — a simple addition rule producing rapid, near-doubling growth — is what makes the Jacobsthal numbers useful in examples and exercises involving recurrence relations.

J(10) / J(9) = 1.9942 and J(15) / J(14) = 2.0002: the consecutive-term ratio closes in on 2 as n increases.

FAQs

What is a Jacobsthal number?

A Jacobsthal number is a term of the sequence defined by J(n) = J(n-1) + 2J(n-2), starting 0, 1, 1, 3, 5, 11, 21. It is a relative of the Fibonacci numbers, but the second term is doubled in the recurrence, so the values grow faster than Fibonacci's.

What is J(10)?

J(10) is 341. The closed form (2^10 - 1) / 3 confirms it: 2^10 is 1,024, minus 1 gives 1,023, and dividing by 3 gives 341. So the recurrence and the closed form agree at n = 10.

What is the closed form?

The closed form is J(n) = (2^n - (-1)^n) / 3. For n = 15 it gives 10,923. This formula computes any Jacobsthal number directly from its index, without stepping through the earlier terms of the sequence.

What is J(20)?

J(20) is 349,525. You can reach it by the recurrence, adding the previous term plus twice the term before that, or by the closed form (2^20 - 1) / 3. Both approaches give the same value at n = 20.

How fast do Jacobsthal numbers grow?

They grow by a factor approaching 2 per step. The ratio between consecutive terms is 1.9942 at n = 10, already close to 2. So each Jacobsthal number is roughly twice the previous one, which is faster growth than the Fibonacci sequence shows.

What are Jacobsthal-Lucas numbers?

Jacobsthal-Lucas numbers are the companion sequence built from 2^n + (-1)^n. They stand to the Jacobsthal numbers as the Lucas numbers stand to the Fibonacci numbers: a related sequence that follows the same recurrence pattern but starts from different initial values.

Sources

Related calculators

Fibonacci Calculator
The nth Fibonacci number, computed exactly with arbitrary-precision arithmetic — plus the next term, the sum of the first n terms, and how close the ratio has come to the golden ratio.
Lucas Number Calculator
The nth Lucas number by its recurrence, with the companion Fibonacci number, the identity check L(n) = F(n-1) + F(n+1) and the ratio that converges to the square root of five.
Catalan Number Calculator
The Catalan numbers — C(2n, n) divided by (n + 1) — counting bracketings, binary trees, polygon triangulations and lattice paths that never cross the diagonal.