How long can -Göbel sequences remain integers?
Abstract.
Inspired by Episode 3 of the Japanese manga “Seisu-tan” by Doom Kobayashi and Shin-ichiro Seki, we investigate the -Göbel sequence named after Fritz Göbel. Although the sequence is generally defined as rational, quite a few initial terms behave like an integer sequence. This article addresses a question raised in Seisu-tan and shows that is always an integer for any and .
2020 Mathematics Subject Classification:
Primary 11B37; Secondary 11B501. Introduction
As Richard Guy [Guy1988] pointed out, it can be challenging to guess the underlying pattern of a sequence from just a few examples. Fritz Göbel111Although Guy’s writings do not provide any information about Göbel’s identity, Neil Sloane has informed the authors that Göbel (Enschede, The Netherlands) is the author of the article [Gobel1970]. investigated a remarkable sequence defined by the recursion
with the initial value , (see [Guy2004, E15]). Although the sequence starting as 1, 2, 3, 5, 10, 28, 154, 3520, 1551880, 267593772160, , seems to be an integer sequence, Hendrik Lenstra [Guy1981] made the discovery that is not an integer. The history can be found in the letter from Lenstra to Neil Sloane dated May 13, 1975, available in [OEIS, A003504]. Here is an excerpt from the letter.
Dear Dr. Sloane,
Thank you very much for sending me the reprint + the first supplement.
The sequence from my letter of April 14:
was mentioned to me by F. Göbel, when he saw my copy of your book. I was able to explain its absence by proving
With kindest regards,
H. W. Lenstra, Jr.
Additionally, David Boyd, Alfred van der Poorten [Guy1981, E15], and Henry Ibstedt [Ibstedt1990] examined the sequence obtained by replacing the squares with cubes in the above definition of . They showed that it remains an integer sequence until the 88th term, but its integrality property breaks at the 89th. This observation led to a more general concept of -Göbel sequences.
Definition 1.1.
For an integer , the -Göbel sequence is defined by and
for .
Following Lenstra and Ibstedt’s considerations, we investigate how long -Göbel sequences remain integers. For each integer , we put . If is always an integer for any non-negative integer , then . The first several terms are calculated as shown in the table below.
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | |
---|---|---|---|---|---|---|---|---|---|---|
43 | 89 | 97 | 214 | 19 | 239 | 37 | 79 | 83 | 239 | |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
31 | 431 | 19 | 79 | 23 | 827 | 43 | 173 | 31 | 103 | |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | |
94 | 73 | 19 | 243 | 141 | 101 | 53 | 811 | 47 | 1077 | |
32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | |
19 | 251 | 29 | 311 | 134 | 71 | 23 | 86 | 43 | 47 | |
42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | |
19 | 419 | 31 | 191 | 83 | 337 | 59 | 1559 | 19 | 127 | |
52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | |
109 | 163 | 67 | 353 | 83 | 191 | 83 | 107 | 19 | 503 |
In Stewart’s book [Stewart2010, Life, Recursion and Everything], the first few terms of were introduced and described as follows: “As far as I know, no one really understands why these sequences behave like they do”. More recently, in the Japanese manga “Seisu-tan”222The title “Seisu-tan” has a double meaning in Japanese. One is “the tale (tan) of integers (seisu)”. The other involves using the term “tan” (commonly employed as a suffix in anime and manga character names) to anthropomorphize integers. [KobayashiSeki2023, Episode 3], the -Göbel sequence is addressed, and the following question is posed: “What is the minimum value of ?”. In this article, we answer the question.

Theorem 1.2.
We have , which implies that for any and . Moreover, we have if and only if .
2. Proof
2.1. Settings
The rough idea of the first half of our proof is in line with that for the -Göbel sequence explained in [KobayashiSeki2023]. To prove Theorem 1.2, we first transform the recursive formula defining the -Göbel sequence into an alternative expression for simpler calculations.
Lemma 2.1.
For any , we have
with .
Proof.
By definition, we see that
which implies the result. ∎
To prove the integrality property for any and , it is enough to show that for any prime number since we have
where is the set of all prime numbers, and is the localization of at defined by . For , by Lemma 2.1, we obviously see that for any and . As for the remaining primes , we need some calculations. We begin by explaining our strategy by using examples.
Example 2.2.
When and , by repeatedly applying Lemma 2.1, we can verify that for all and in . Thus we have , which implies . We also have .
Example 2.3.
When and , the first step is to confirm that by considering congruences modulo higher powers (corresponding to the largest power of that divides ). Then, the congruence implies that in . Subsequently, we have and , which implies . Here is the list of all the calculations we have done.
In particular, we have for all . We remark that continuing this calculation does not show . To show it, we have to consider congruences modulo .
Example 2.4.
When and , by the same argument, we have for all and . Thus we have , which implies .
Let be the exponent of the largest power of that divides . To compute the general cases by using Mathematica, we rephrase Lemma 2.1 and the above examples by introducing the following sequences.
Definition 2.5.
Let be integers, and a prime. For any positive integer with , we define by the initial value and the following recursion: When with , we define
if and if otherwise, where is the inverse in . When , we define .
We easily see that if , then and in . Moreover, if and , then holds. The symbol “” is an abbreviation for “false”. Since implies that for all , all we have to do is to check that for all and primes . The above examples will be explained again in terms of the in Example 2.8 below.
2.2. Reduction to the finite number of ’s
By focusing on the periodicity of for , we show that it is sufficient to check the above calculations for finite cases.
Lemma 2.6.
Let be a positive integer and a prime. We assume that integers satisfy and , where is the Euler totient function. Then, for any integers with , we have
Proof.
By Euler’s theorem, we have
whether or . ∎
Proposition 2.7.
Under the same assumptions as in Lemma 2.6, for any integer satisfying , we have .
Proof.
It follows from the induction on and Lemma 2.6. ∎
Therefore, we have to check that for primes and with . Finally, we will check them by using Mathematica.
2.3. Mathematica
The following is a code for computing -Göbel sequence .
nu[p_, n_] := FirstCase[FactorInteger[n], {p, r_} -> r, 0]; inv[n_, M_] := If[M == 1, 1, ModularInverse[n, M]]; g[k_, 1, p_, r_] := {2, r}; g[k_, n_, p_, r_] := g[k, n, p, r] = Module[{a, b}, If[g[k, n - 1, p, r] === "F", "F", {a, b} = g[k, n - 1, p, r]; If[Mod[a (n - 1 + a^(k - 1)), p^nu[p, n]] != 0, "F", {Mod[ a (n - 1 + a^(k - 1))/p^nu[p, n] inv[n/p^nu[p, n], p^(b - nu[p, n])], p^(b - nu[p, n])], b - nu[p, n]}]]];
Example 2.8.
We show the lists of and .
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
---|---|---|---|---|---|---|---|---|---|---|
{2,2} | {3,2} | {5,2} | {10,2} | {28,2} | {7,2} | {6,1} | {1,1} | {1,1} | {1,1} | |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | |||
{1,1} | {1,1} | {1,1} | {0,0} | {0,0} | {0,0} | {0,0} | {0,0} |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
---|---|---|---|---|---|---|---|---|---|---|
{2,1} | {14,1} | {18,1} | {9,1} | {17,1} | {9,1} | {12,1} | {13,1} | {17,1} | {16,1} | |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | ||
{10,1} | {18,1} | {5,1} | {16,1} | {4,1} | {8,1} | {2,1} | {16,1} |
The output for means that , that is, in . The results coincide with those in Example 2.3 and Example 2.4.
The resulting outputs of for all cases we have to check are . In other words, as desired, we have successfully confirmed that for primes and integers . This concludes the proof of the first half of Theorem 1.2.
Furthermore, we also have the following table for , which immediately implies the second half of Theorem 1.2, that is, if and only if .
2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
---|---|---|---|---|---|---|---|---|---|
{0,0} | {0,0} | {0,0} | {0,0} | {0,0} | {0,0} | {0,0} | {0,0} | ||
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | |
{0,0} | {0,0} | {0,0} | {0,0} | {0,0} | {0,0} | {0,0} | {0,0} |
3. Concluding remarks
Let be the set of all given by
Determining the set is a fundamental question requiring further investigation. Our Theorem 1.2 ensures that the minimum of is , and Table 1 suggests that
Upon observing its initial terms, only prime numbers may seem to occur. However, for example, is a composite number, and by using the same approach as in our proof, it can be confirmed that the prime number is not included in . As discussed in [KobayashiSeki2023], it is not known whether always takes a finite value for any , and whether is infinite.
Zagier [Zagier1996, Day 5, Problem 3] addressed the (-)Göbel sequence and provided an asymptotic formula for , (see also [Finch2003, 6.10] and [Weisstein]). He also discussed heuristics suggesting that often holds.
We introduce another approach by Ibstedt [Ibstedt1990]. Specifically, a new sequence can be obtained by adopting the recursion in Lemma 2.1 as the definition of -Göbel sequences and varying the initial value choice of . Consequently, can be defined similarly. For instance, the -Göbel sequence with the initial value is given by
This example illustrates that altering the initial value can cause the loss of integrality property earlier than in the original -Göbel sequence. In these cases as well, similar problems are likely to be considered.
Acknowledgements
The authors would like to express their gratitude to Neil Sloane for providing background information on Fritz Göbel and to Masanobu Kaneko for sharing a copy of Zagier’s note [Zagier1996] and offering helpful comments. Additionally, they extend their thanks to Shin-ichiro Seki for inspiring this study and providing valuable comments. Special acknowledgements are also due to Doom Kobayashi and Akira Iino for granting permission to use the image in Figure 1. The second author was supported by JSPS KAKENHI Grant Numbers JP20K14292 and JP21K18141.