Keith Number Calculator

Number

Keith verdictYes
Digits in n3
Terms generated8
Term just before n107
How this was calculated
  1. A Keith number reproduces itself from its own digits: seed a sequence with the digits, then keep adding the last d terms, where d is the number of digits.
  2. The digits of 197 are 1, 9, 7, so each new term is the sum of the previous 3 terms.
  3. The sequence runs 1, 9, 7, 17, 33, 57, 107, 197.
  4. The sequence lands exactly on 197 after 8 terms, so 197 is a Keith number.

A Keith number calculator tells you whether a whole number is a Keith number by building the digit-seeded sequence that defines it. Start with the number's own digits, then add the previous d terms to get each new term, where d is the digit count. If the sequence lands exactly on the original number, that number is a Keith number. The calculator does this checking for you and gives a clear yes or no, along with the sequence it built. For example, 197 is a Keith number: from 1, 9, 7 the sequence runs 17, 33, 57, 107 and lands on 197 in 8 terms. 742 is also a Keith number: 7, 4, 2, 13, 19, 34, 66, 119, 219, 404, 742, in 11 terms. And 100 is not a Keith number, because its digit sequence jumps from 81 to 149, passing 100 without hitting it.

This digit-seeded summing method is the accepted standard for identifying Keith numbers, also called repfigit numbers, for recurring Fibonacci-like digit generation. The rule is fixed and repeatable: seed with the digits, add the last d terms, and compare the result with the starting number. Because the test depends only on that rule, different tools and hand calculations should agree when they follow it. This page shows the formula, the step-by-step workings, worked examples and sources, so you can follow how each answer is reached and check it yourself rather than taking a result on trust.

Worked examples

197, a Keith number

(197)

Keith verdictYes
Digits in n3
Terms generated8
Term just before n107

742, a Keith number

(742)

Keith verdictYes
Digits in n3
Terms generated11
Term just before n404

100, which the sequence jumps over

(100)

Keith verdictNo
Digits in n3
Terms generated13
First term past n149

What is a Keith number?

A Keith number is a number that turns up in a sequence built from its own digits. The rule is simple: take the digits of the number as the first terms, then generate each new term by adding the previous d terms, where d is the number of digits in the original number. If the original number eventually appears in that sequence, it qualifies as a Keith number. This self-reproduction test is exactly what a Keith number calculator automates, but the idea behind it is easy to follow by hand on small examples.

Consider 197. It has three digits, so each new term is the sum of the previous three. Seeded with 1, 9, and 7, the sequence runs 17, 33, 57, 107, and lands on 197 in 8 terms. Because 197 shows up in the sequence grown from its own digits, it is a Keith number. The same test works for 742: seeded with 7, 4, and 2, the sequence goes 13, 19, 34, 66, 119, 219, 404, and reaches 742 in 11 terms, so 742 is also a Keith number.

Most numbers fail the test, and often they fail by jumping over themselves. Take 100. Its digits seed the sequence, and as the terms grow the sequence jumps from 81 to 149, passing 100 without ever landing on it. That single skipped value is enough to disqualify 100. The test is not about getting close to the original number; the number must appear as an exact term in the sequence.

The name honors mathematician Mike Keith, who described these numbers. They are also called repfigit numbers, short for recurring Fibonacci-like digit generation, which describes the mechanism: digits are reused as seeds, and the recurrence behaves like a Fibonacci-style sum in which the number of terms added depends on the digit count. A two-digit number adds the previous two terms, a three-digit number adds the previous three, and so on.

The digit count matters at every step. Changing d changes how many prior terms are summed, so the same starting digits under a different rule would produce a different sequence. That is why the definition ties the recurrence length to the number's own length rather than using a fixed rule for every number. The self-reproduction test then asks one question: does the sequence seeded by the digits ever equal the number that supplied them?

  • 197: digits 1, 9, 7; sequence 17, 33, 57, 107, then 197 in 8 terms — a Keith number.
  • 742: digits 7, 4, 2; sequence 13, 19, 34, 66, 119, 219, 404, then 742 in 11 terms — a Keith number.
  • 100: the sequence jumps from 81 to 149, passing 100 — not a Keith number.
  • Also called repfigit numbers, for recurring Fibonacci-like digit generation.
The test is exact: the number must appear as a term in the sequence seeded by its own digits. Landing near it, or passing over it as 100 does between 81 and 149, does not count.

Worked examples

A Keith number calculator is easiest to trust when you can see the arithmetic behind each result. The rule is simple: start with the number's own digits, then build each new term by adding the previous d terms, where d is the digit count. If the original number eventually appears in that sequence, it is a Keith number. Running a few examples term by term shows exactly where the sequence lands — and where it does not.

Take 197. It has three digits, so every new term is the sum of the previous three. The sequence starts with the digits themselves: 1, 9, 7. The next term is 1 + 9 + 7 = 17. Then 9 + 7 + 17 = 33. Then 7 + 17 + 33 = 57. Then 17 + 33 + 57 = 107. Finally, 33 + 57 + 107 = 197. The sequence lands exactly on the starting number, reaching it in 8 terms counting the three seed digits. That makes 197 a Keith number.

Now try 742, which also has three digits, so the same three-term rule applies. The seed digits are 7, 4, 2. The terms then run: 7 + 4 + 2 = 13; 4 + 2 + 13 = 19; 2 + 13 + 19 = 34; 13 + 19 + 34 = 66; 19 + 34 + 66 = 119; 34 + 66 + 119 = 219; 66 + 119 + 219 = 404; and 119 + 219 + 404 = 742. The sequence lands on 742 in 11 terms, so 742 is a Keith number as well.

Not every number lands on itself. Consider 100, which has three digits and seeds the sequence with 1, 0, 0. Watch what happens around the target: the digit sequence jumps from 81 to 149, passing straight over 100. Because 100 never appears as a term, it is not a Keith number. This is the key check the calculator performs — it does not stop when a term gets close to the original number; it keeps adding until a term matches the number or passes it.

These examples also show why the method is called repfigit: recurring Fibonacci-like digit generation. Each term depends on the ones before it, just as Fibonacci numbers do, but the starting values come from the digits themselves.

  • 197: seeds 1, 9, 7 → 17, 33, 57, 107 → lands on 197 in 8 terms.
  • 742: seeds 7, 4, 2 → 13, 19, 34, 66, 119, 219, 404 → lands on 742 in 11 terms.
  • 100: the sequence jumps from 81 to 149, passing 100, so it is not a Keith number.
NumberSeed digitsSequence terms after the seedsLanding termKeith number?
1971, 9, 717, 33, 57, 107197 (8 terms)Yes
7427, 4, 213, 19, 34, 66, 119, 219, 404742 (11 terms)Yes
1001, 0, 0jumps from 81 to 149, passing 100noneNo
The test is a match, not a near miss: a number counts as a Keith number only if a term equals it exactly. A sequence that steps over the number, as 100's does from 81 to 149, rules it out.

Why Keith numbers are rare

A Keith number is defined by a near-miss-proof condition: it must appear exactly in the sequence seeded by its own digits, where each new term is the sum of the previous d terms and d is the digit count. Because that sequence grows roughly geometrically, hitting the seed number exactly is a coincidence rather than a rule. That is the core reason a Keith number calculator finds so few matches as the numbers get larger: the sequence races ahead, and the odds of landing precisely on the target thin out with every added digit.

Small examples make the mechanism visible. Take 197: from the seeds 1, 9, 7 the sequence runs 17, 33, 57, 107, and lands on 197 in 8 terms. Take 742: from 7, 4, 2 it runs 13, 19, 34, 66, 119, 219, 404, and reaches 742 in 11 terms. Both are genuine Keith numbers, and both require the running sum to stop exactly on the seed. Now look at 100, which is not a Keith number: its digit sequence jumps from 81 to 149, passing 100 without ever equaling it. One step too far, and the chance is gone.

That jump is the whole story. With a fixed number of terms being added, each new term is a multiple of the terms before it, so the sequence climbs at something close to a steady ratio. A geometric climb does not pause politely at every integer along the way; it skips over most of them. For a number to be Keith, the sequence has to touch it on the nose, and as the numbers grow longer, the gaps between consecutive terms grow wider while the target sits at just one point in that range. The window for an exact landing narrows quickly, which is why the list of Keith numbers stays sparse even though the supply of candidate integers is endless.

This is also why the search feels different from checking something like divisibility. A divisibility test answers yes or no from the digits themselves. A Keith test has to generate the sequence term by term and watch for an exact match, and the sequence can sail past the target in a single step. Running a Keith number calculator on a range of numbers mostly returns empty results, with the occasional hit standing out. Those hits are not following a pattern that guarantees more will follow; they are coincidences of digit choice and sum behavior that happen to align.

The alternate name captures the flavor of the process: Keith numbers are also called repfigit numbers, for recurring Fibonacci-like digit generation. The Fibonacci comparison is apt, because the growth is steady and compounding, and exact landings are the exception. As digit counts increase, the geometric climb outpaces the supply of exact matches, and the numbers become rarer still.

197 lands in 8 terms, 742 lands in 11, and 100 is skipped entirely — from 81 the sequence jumps to 149. Exact landings are coincidences, and they thin out fast.

Keith numbers and Fibonacci-like sequences

A Keith number is defined by a sequence that grows out of its own digits. Write down the digits of the number, then let each new term be the sum of the previous d terms, where d is the digit count. That single rule is the whole idea behind a Keith number calculator: it builds the digit-seeded sequence and checks whether the original number ever appears in it. Because the adding window is fixed at d, the sequence is not an ordinary Fibonacci chain of two terms but a Fibonacci-like chain whose width matches how many digits the number has. A two-digit number sums the previous two terms, a three-digit number sums the previous three, and so on.

The three-digit case shows the mechanism clearly. Start with 197 and seed the sequence with its digits, 1, 9, and 7. Each new term is the sum of the previous three: 1 + 9 + 7 gives 17, then 9 + 7 + 17 gives 33, then 7 + 17 + 33 gives 57, then 17 + 33 + 57 gives 107, and 33 + 57 + 107 gives 197. The sequence runs 17, 33, 57, 107 and lands on 197 in 8 terms, counting the three seed digits. That arrival is what makes 197 a Keith number.

The same rule works at other digit counts. For 742, the seeds are 7, 4, and 2, and the three-term window produces 13, 19, 34, 66, 119, 219, 404, and finally 742, for 11 terms in all. The window size is always the digit count, so the arithmetic adapts to the number rather than the other way around. A Keith number calculator simply automates that repetition: read the digits, set the window to their count, add, and compare each result with the starting value.

Not every number survives the test. Take 100: its digit sequence jumps from 81 to 149, passing 100 without ever landing on it. The sequence can step right over the target, which is why the check has to look for an exact match rather than a near miss. Keith numbers are also called repfigit numbers, short for recurring Fibonacci-like digit generation, a name that captures the same picture. Placed among digit recurrences, each Keith sequence is a Fibonacci-style sum whose window equals the digit count, and the number qualifies only when its own value appears in that sequence.

  • 197: seeds 1, 9, 7; sequence 17, 33, 57, 107; reaches 197 in 8 terms.
  • 742: seeds 7, 4, 2; sequence 13, 19, 34, 66, 119, 219, 404; reaches 742 in 11 terms.
  • 100: the digit sequence jumps from 81 to 149, passing 100, so it is not a Keith number.
  • Repfigit numbers: another name for Keith numbers, from recurring Fibonacci-like digit generation.
The adding window is always the digit count: two digits sum the last two terms, three digits sum the last three, and so on.

FAQs

What is a Keith number?

A Keith number is a number that appears in the sequence generated from its own digits by repeatedly adding the last d terms. You start with the number's digits, then keep adding the most recent d terms, where d is the count of digits. If the original number shows up in that sequence, it qualifies as a Keith number.

Is 197 a Keith number?

Yes. Starting from its digits 1, 9, and 7, the sequence runs 1, 9, 7, 17, 33, 57, 107, 197. It reaches 197 in 8 terms, so 197 is a Keith number.

Is 742 a Keith number?

Yes. The sequence built from the digits 7, 4, and 2 reaches 742 in 11 terms, passing through 404 along the way. Because the original number appears in its own digit-generated sequence, 742 is a Keith number.

Is 100 a Keith number?

No. The sequence from the digits 1, 0, 0 runs 1, 1, 2, 4, 7, 13, 24, 44, 81, 149 and jumps over 100. Since 100 never appears in the sequence generated from its own digits, it is not a Keith number.

Can a single-digit number be a Keith number?

No. A single-digit number cannot be a Keith number, because the idea needs at least two digits for the recurrence to generate new terms. With only one digit, the process cannot build the longer sequence required to test whether the original number reappears.

What does repfigit mean?

Repfigit stands for recurring Fibonacci-like digit. It is the original name for the same self-generating property behind Keith numbers, where a number's digits seed a sequence that eventually produces the number itself.

Sources

Related calculators

Happy Number Calculator
Test whether a number is happy: repeatedly replace it by the sum of the squares of its digits and see whether the chain reaches 1 or falls into a loop.
Harshad Number Checker
Tests whether a number is a Harshad (Niven) number - divisible by the sum of its digits - with the digit sum, the division and the next Harshad number.
Smith Number Calculator
Test whether a number is a Smith number: compare the sum of its digits with the sum of the digits of its prime factors counted with multiplicity, with the full prime factorization shown - 666 and 22 qualify, most numbers do not.