Keith number

1

In recreational mathematics, a Keith number or repfigit number (short for repetitive Fibonacci-like digit) is a natural number n in a given number base b with k digits such that when a sequence is created such that the first k terms are the k digits of n and each subsequent term is the sum of the previous k terms, n is part of the sequence. Keith numbers were introduced by Mike Keith in 1987. They are computationally very challenging to find, with only about 100 known.

Definition

Let n be a natural number, let be the number of digits of n in base b, and let be the value of each digit of n. We define the sequence S(i) by a linear recurrence relation. For , and for i \geq k If there exists an i such that S(i) = n, then n is said to be a Keith number. For example, 88 is a Keith number in base 6, as and the entire sequence and S(7) = 88.

Finding Keith numbers

Whether or not there are infinitely many Keith numbers in a particular base b is currently a matter of speculation. Keith numbers are rare and hard to find. They can be found by exhaustive search, and no more efficient algorithm is known. According to Keith, in base 10, on average Keith numbers are expected between successive powers of 10. Known results seem to support this.

Examples

14, 19, 28, 47, 61, 75, 197, 742, 1104, 1537, 2208, 2580, 3684, 4788, 7385, 7647, 7909, 31331, 34285, 34348, 55604, 62662, 86935, 93993, 120284, 129106, 147640, 156146, 174680, 183186, 298320, 355419, 694280, 925993, 1084051, 7913837, 11436171, 33445755, 44121607, 129572008, 251133297, ...

Other bases

In base 2, there exists a method to construct all Keith numbers. The Keith numbers in base 12, written in base 12, are where ᘔ represents 10 and Ɛ represents 11.

Keith clusters

A Keith cluster is a related set of Keith numbers such that one is a multiple of another. For example, in base 10, {14, 28},, and are all Keith clusters. These are possibly the only three examples of a Keith cluster in base 10.

Programming example

The example below implements the sequence defined above in Python to determine if a number in a particular base is a Keith number:

This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
Bliptext is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation.

Edit article