This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

How long can kk-Göbel sequences remain integers?

Rinnosuke Matsuhira Department of Mathematics, Kyushu University, Motooka 744, Nishi-ku, Fukuoka 819-0395, Japan [email protected] Toshiki Matsusaka Faculty of Mathematics, Kyushu University, Motooka 744, Nishi-ku, Fukuoka 819-0395, Japan [email protected]  and  Koki Tsuchida Department of Mathematics, Kyushu University, Motooka 744, Nishi-ku, Fukuoka 819-0395, Japan [email protected]
Abstract.

Inspired by Episode 3 of the Japanese manga “Seisu-tan” by Doom Kobayashi and Shin-ichiro Seki, we investigate the kk-Göbel sequence (gk,n)n(g_{k,n})_{n} 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 gk,ng_{k,n} is always an integer for any k2k\geq 2 and 0n180\leq n\leq 18.

2020 Mathematics Subject Classification:
Primary 11B37; Secondary 11B50

1. 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 (gn)n(g_{n})_{n} defined by the recursion

gn=1+g02+g12++gn12ng_{n}=\frac{1+g_{0}^{2}+g_{1}^{2}+\dots+g_{n-1}^{2}}{n}

with the initial value g0=1g_{0}=1, (see [Guy2004, E15]). Although the sequence (gn)n(g_{n})_{n} starting as 1, 2, 3, 5, 10, 28, 154, 3520, 1551880, 267593772160, \dots, seems to be an integer sequence, Hendrik Lenstra [Guy1981] made the discovery that g435.4×10178485291567g_{43}\approx 5.4\times 10^{178485291567} 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:

a1\displaystyle a_{1} =1\displaystyle=1
an+1\displaystyle a_{n+1} =1+a12+a22++an2n\displaystyle=\frac{1+a_{1}^{2}+a_{2}^{2}+\cdots+a_{n}^{2}}{n}

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

ann43.a_{n}\in\mathbb{Z}\Longleftrightarrow n\leq 43.

\dots

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 gng_{n}. 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 kk-Göbel sequences.

Definition 1.1.

For an integer k2k\geq 2, the kk-Göbel sequence (gk,n)n(g_{k,n})_{n} is defined by gk,0=1g_{k,0}=1 and

gk,n=1n(1+j=0n1gk,jk)g_{k,n}=\frac{1}{n}\left(1+\sum_{j=0}^{n-1}g_{k,j}^{k}\right)

for n1n\geq 1.

Following Lenstra and Ibstedt’s considerations, we investigate how long kk-Göbel sequences remain integers. For each integer k2k\geq 2, we put Nk=inf{n0:gk,n}N_{k}=\inf\{n\in\mathbb{Z}_{\geq 0}:g_{k,n}\not\in\mathbb{Z}\}. If gk,ng_{k,n} is always an integer for any non-negative integer nn, then Nk=N_{k}=\infty. The first several terms are calculated as shown in the table below.

kk 2 3 4 5 6 7 8 9 10 11
NkN_{k} 43 89 97 214 19 239 37 79 83 239
kk 12 13 14 15 16 17 18 19 20 21
NkN_{k} 31 431 19 79 23 827 43 173 31 103
kk 22 23 24 25 26 27 28 29 30 31
NkN_{k} 94 73 19 243 141 101 53 811 47 1077
kk 32 33 34 35 36 37 38 39 40 41
NkN_{k} 19 251 29 311 134 71 23 86 43 47
kk 42 43 44 45 46 47 48 49 50 51
NkN_{k} 19 419 31 191 83 337 59 1559 19 127
kk 52 53 54 55 56 57 58 59 60 61
NkN_{k} 109 163 67 353 83 191 83 107 19 503
Table 1. OEIS [OEIS, A108394]

In Stewart’s book [Stewart2010, Life, Recursion and Everything], the first few terms of NkN_{k} 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 kk-Göbel sequence is addressed, and the following question is posed: “What is the minimum value of NkN_{k}?”. In this article, we answer the question.

Refer to caption
Figure 1. The excerpt from Seisu-tan [KobayashiSeki2023, Episode 3]. They observed the list of NkN_{k} and asked the above question.
Theorem 1.2.

We have mink2Nk=19\min_{k\geq 2}N_{k}=19, which implies that gk,ng_{k,n}\in\mathbb{Z} for any k2k\geq 2 and 0n180\leq n\leq 18. Moreover, we have Nk=19N_{k}=19 if and only if k6,14(mod18)k\equiv 6,14\pmod{18}.

2. Proof

2.1. Settings

The rough idea of the first half of our proof is in line with that for the 22-Göbel sequence explained in [KobayashiSeki2023]. To prove Theorem 1.2, we first transform the recursive formula defining the kk-Göbel sequence into an alternative expression for simpler calculations.

Lemma 2.1.

For any n2n\geq 2, we have

ngk,n=gk,n1(n1+gk,n1k1)ng_{k,n}=g_{k,n-1}(n-1+g_{k,n-1}^{k-1})

with gk,1=2g_{k,1}=2.

Proof.

By definition, we see that

ngk,n=1+j=0n1gk,jk=(n1)gk,n1+gk,n1k,\displaystyle ng_{k,n}=1+\sum_{j=0}^{n-1}g_{k,j}^{k}=(n-1)g_{k,n-1}+g_{k,n-1}^{k},

which implies the result. ∎

To prove the integrality property gk,ng_{k,n}\in\mathbb{Z} for any k2k\geq 2 and 1n181\leq n\leq 18, it is enough to show that gk,n(p)g_{k,n}\in\mathbb{Z}_{(p)} for any prime number pp since we have

p𝒫(p)=,\bigcap_{p\in\mathcal{P}}\mathbb{Z}_{(p)}=\mathbb{Z},

where 𝒫\mathcal{P} is the set of all prime numbers, and (p)\mathbb{Z}_{(p)} is the localization of \mathbb{Z} at (p)(p) defined by (p)={a/b:pb}\mathbb{Z}_{(p)}=\left\{a/b\in\mathbb{Q}:p\nmid b\right\}. For p19p\geq 19, by Lemma 2.1, we obviously see that gk,n(p)g_{k,n}\in\mathbb{Z}_{(p)} for any k2k\geq 2 and 1n181\leq n\leq 18. As for the remaining primes 2p172\leq p\leq 17, we need some calculations. We begin by explaining our strategy by using examples.

Example 2.2.

When p=17p=17 and k=2k=2, by repeatedly applying Lemma 2.1, we can verify that g2,n(17)g_{2,n}\in\mathbb{Z}_{(17)} for all 1n161\leq n\leq 16 and g2,161(mod17)g_{2,16}\equiv 1\pmod{17} in (17)\mathbb{Z}_{(17)}. Thus we have 17g2,17=g2,16(16+g2,16)0(mod17)17g_{2,17}=g_{2,16}(16+g_{2,16})\equiv 0\pmod{17}, which implies g2,17(17)g_{2,17}\in\mathbb{Z}_{(17)}. We also have g2,18(17)g_{2,18}\in\mathbb{Z}_{(17)}.

Example 2.3.

When p=7p=7 and k=2k=2, the first step is to confirm that g2,67(mod72)g_{2,6}\equiv 7\pmod{7^{2}} by considering congruences modulo higher powers (corresponding to the largest power of pp that divides 18!18!). Then, the congruence 7g2,7=g2,6(6+g2,6)713(mod72)7g_{2,7}=g_{2,6}(6+g_{2,6})\equiv 7\cdot 13\pmod{7^{2}} implies that g2,76(mod7)g_{2,7}\equiv 6\pmod{7} in (7)\mathbb{Z}_{(7)}. Subsequently, we have g2,131(mod7)g_{2,13}\equiv 1\pmod{7} and 14g2,14=g2,13(13+g2,13)0(mod7)14g_{2,14}=g_{2,13}(13+g_{2,13})\equiv 0\pmod{7}, which implies g2,14(7)g_{2,14}\in\mathbb{Z}_{(7)}. Here is the list of all the calculations we have done.

g2,1\displaystyle g_{2,1} 2(mod72),\displaystyle\equiv 2\pmod{7^{2}}, g2,2\displaystyle g_{2,2} 3(mod72),\displaystyle\equiv 3\pmod{7^{2}}, g2,3\displaystyle g_{2,3} 5(mod72),\displaystyle\equiv 5\pmod{7^{2}}, g2,4\displaystyle g_{2,4} 10(mod72),\displaystyle\equiv 10\pmod{7^{2}},
g2,5\displaystyle g_{2,5} 28(mod72),\displaystyle\equiv 28\pmod{7^{2}}, g2,6\displaystyle g_{2,6} 7(mod72),\displaystyle\equiv 7\pmod{7^{2}}, g2,7\displaystyle g_{2,7} 6(mod71),\displaystyle\equiv 6\pmod{7^{1}}, g2,8\displaystyle g_{2,8} 1(mod71),\displaystyle\equiv 1\pmod{7^{1}},
g2,9\displaystyle g_{2,9} 1(mod71),\displaystyle\equiv 1\pmod{7^{1}}, g2,10\displaystyle g_{2,10} 1(mod71),\displaystyle\equiv 1\pmod{7^{1}}, g2,11\displaystyle g_{2,11} 1(mod71),\displaystyle\equiv 1\pmod{7^{1}}, g2,12\displaystyle g_{2,12} 1(mod71),\displaystyle\equiv 1\pmod{7^{1}},
g2,13\displaystyle g_{2,13} 1(mod71),\displaystyle\equiv 1\pmod{7^{1}}, g2,14\displaystyle g_{2,14} 0(mod70),\displaystyle\equiv 0\pmod{7^{0}}, g2,15\displaystyle g_{2,15} 0(mod70),\displaystyle\equiv 0\pmod{7^{0}}, g2,16\displaystyle g_{2,16} 0(mod70),\displaystyle\equiv 0\pmod{7^{0}},
g2,17\displaystyle g_{2,17} 0(mod70),\displaystyle\equiv 0\pmod{7^{0}}, g2,18\displaystyle g_{2,18} 0(mod70).\displaystyle\equiv 0\pmod{7^{0}}.

In particular, we have g2,n(7)g_{2,n}\in\mathbb{Z}_{(7)} for all 1n181\leq n\leq 18. We remark that continuing this calculation does not show g2,21(7)g_{2,21}\in\mathbb{Z}_{(7)}. To show it, we have to consider congruences modulo 737^{3}.

Example 2.4.

When p=19p=19 and k=6k=6, by the same argument, we have g6,n(19)g_{6,n}\in\mathbb{Z}_{(19)} for all 1n181\leq n\leq 18 and g6,1816(mod19)g_{6,18}\equiv 16\pmod{19}. Thus we have 19g6,19=g6,18(18+g6,185)10(mod19)19g_{6,19}=g_{6,18}(18+g_{6,18}^{5})\equiv 10\pmod{19}, which implies g6,19(19)g_{6,19}\notin\mathbb{Z}_{(19)}.

Let νp(n)\nu_{p}(n) be the exponent of the largest power of pp that divides nn. 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 k2,r1k\geq 2,r\geq 1 be integers, and pp a prime. For any positive integer nn with νp(n!)r\nu_{p}(n!)\leq r, we define gk,n,p,r/prνp(n!){𝖥}g_{k,n,p,r}\in\mathbb{Z}/p^{r-\nu_{p}(n!)}\mathbb{Z}\cup\{\mathsf{F}\} by the initial value gk,1,p,r=2modpr/prg_{k,1,p,r}=2\bmod{p^{r}}\in\mathbb{Z}/p^{r}\mathbb{Z} and the following recursion: When gk,n1,p,r=amodpbg_{k,n-1,p,r}=a\bmod{p^{b}} with b=rνp((n1)!)b=r-\nu_{p}((n-1)!), we define

gk,n,p,r={a(n1+ak1)pνp(n)(n/pνp(n))1modpbνp(n)if bνp(n)>0,0modp0if bνp(n)=0\displaystyle g_{k,n,p,r}=\begin{cases}\dfrac{a(n-1+a^{k-1})}{p^{\nu_{p}(n)}}(n/p^{\nu_{p}(n)})^{-1}\bmod{p^{b-\nu_{p}(n)}}&\text{if }b-\nu_{p}(n)>0,\\ 0\bmod{p^{0}}&\text{if }b-\nu_{p}(n)=0\end{cases}

if a(n1+ak1)0(modpνp(n))a(n-1+a^{k-1})\equiv 0\pmod{p^{\nu_{p}(n)}} and gk,n,p,r=𝖥g_{k,n,p,r}=\mathsf{F} if otherwise, where (n/pνp(n))1(n/p^{\nu_{p}(n)})^{-1} is the inverse in (/pbνp(n))×(\mathbb{Z}/p^{b-{\nu_{p}(n)}}\mathbb{Z})^{\times}. When gk,n1,p,r=𝖥g_{k,n-1,p,r}=\mathsf{F}, we define gk,n,p,r=𝖥g_{k,n,p,r}=\mathsf{F}.

We easily see that if gk,n,p,r𝖥g_{k,n,p,r}\neq\mathsf{F}, then gk,n(p)g_{k,n}\in\mathbb{Z}_{(p)} and gk,n,p,r=gk,nmodprνp(n!)g_{k,n,p,r}=g_{k,n}\bmod{p^{r-\nu_{p}(n!)}} in (p)/prνp(n!)(p)/prνp(n!)\mathbb{Z}_{(p)}/p^{r-\nu_{p}(n!)}\mathbb{Z}_{(p)}\cong\mathbb{Z}/p^{r-\nu_{p}(n!)}\mathbb{Z}. Moreover, if gk,n1,p,r𝖥g_{k,n-1,p,r}\neq\mathsf{F} and gk,n,p,r=𝖥g_{k,n,p,r}=\mathsf{F}, then gk,n(p)g_{k,n}\notin\mathbb{Z}_{(p)} holds. The symbol “𝖥\mathsf{F}” is an abbreviation for “false”. Since gk,n,p,r𝖥g_{k,n,p,r}\neq\mathsf{F} implies that gk,m,p,r𝖥g_{k,m,p,r}\neq\mathsf{F} for all 1mn1\leq m\leq n, all we have to do is to check that gk,18,p,νp(18!)𝖥g_{k,18,p,\nu_{p}(18!)}\neq\mathsf{F} for all k2k\geq 2 and primes 2p172\leq p\leq 17. The above examples will be explained again in terms of the gk,n,p,rg_{k,n,p,r} in Example 2.8 below.

2.2. Reduction to the finite number of kk’s

By focusing on the periodicity of gk,n,p,rg_{k,n,p,r} for kk, we show that it is sufficient to check the above calculations for finite cases.

Lemma 2.6.

Let r1r\geq 1 be a positive integer and pp a prime. We assume that integers k,k,\ell satisfy r+1kr+1\leq k\leq\ell and k(modφ(pr))k\equiv\ell\pmod{\varphi(p^{r})}, where φ(n)\varphi(n) is the Euler totient function. Then, for any integers a,ba,b\in\mathbb{Z} with 0br0\leq b\leq r, we have

ak1a1(modpb).a^{k-1}\equiv a^{\ell-1}\pmod{p^{b}}.
Proof.

By Euler’s theorem, we have

a1ak1=ak1(ak1)0(modpr)a^{\ell-1}-a^{k-1}=a^{k-1}(a^{\ell-k}-1)\equiv 0\pmod{p^{r}}

whether pap\nmid a or pap\mid a. ∎

Proposition 2.7.

Under the same assumptions as in Lemma 2.6, for any integer nn satisfying νp(n!)r\nu_{p}(n!)\leq r, we have gk,n,p,r=g,n,p,rg_{k,n,p,r}=g_{\ell,n,p,r}.

Proof.

It follows from the induction on nn and Lemma 2.6. ∎

Therefore, we have to check that gk,18,p,r𝖥g_{k,18,p,r}\neq\mathsf{F} for primes 2p172\leq p\leq 17 and 2kφ(pr)+r2\leq k\leq\varphi(p^{r})+r with r=νp(18!)r=\nu_{p}(18!). Finally, we will check them by using Mathematica.

2.3. Mathematica

The following is a code for computing kk-Göbel sequence gk,n,p,rg_{k,n,p,r}.

{screen}
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 (g2,n,7,2)n=118(g_{2,n,7,2})_{n=1}^{18} and (g6,n,19,1)n=119(g_{6,n,19,1})_{n=1}^{19}.

nn 1 2 3 4 5 6 7 8 9 10
g2,n,7,2g_{2,n,7,2} {2,2} {3,2} {5,2} {10,2} {28,2} {7,2} {6,1} {1,1} {1,1} {1,1}
nn 11 12 13 14 15 16 17 18
g2,n,7,2g_{2,n,7,2} {1,1} {1,1} {1,1} {0,0} {0,0} {0,0} {0,0} {0,0}
nn 1 2 3 4 5 6 7 8 9 10
g6,n,19,1g_{6,n,19,1} {2,1} {14,1} {18,1} {9,1} {17,1} {9,1} {12,1} {13,1} {17,1} {16,1}
nn 11 12 13 14 15 16 17 18 19
g6,n,19,1g_{6,n,19,1} {10,1} {18,1} {5,1} {16,1} {4,1} {8,1} {2,1} {16,1} 𝖥\mathsf{F}

The output {a,b}\{a,b\} for nn means that gk,n,p,r=amodpbg_{k,n,p,r}=a\bmod{p^{b}}, that is, gk,na(modpb)g_{k,n}\equiv a\pmod{p^{b}} in (p)\mathbb{Z}_{(p)}. The results coincide with those in Example 2.3 and Example 2.4.

The resulting outputs of gk,18,p,νp(18!)g_{k,18,p,\nu_{p}(18!)} for all cases we have to check are {0,0}\{0,0\}. In other words, as desired, we have successfully confirmed that gk,18,p,νp(18!)𝖥g_{k,18,p,\nu_{p}(18!)}\neq\mathsf{F} for primes 2p172\leq p\leq 17 and integers 2kφ(pνp(18!))+νp(18!)2\leq k\leq\varphi(p^{\nu_{p}(18!)})+\nu_{p}(18!). This concludes the proof of the first half of Theorem 1.2.

Furthermore, we also have the following table for p=19p=19, which immediately implies the second half of Theorem 1.2, that is, Nk=19N_{k}=19 if and only if k6,14(mod18)k\equiv 6,14\pmod{18}.

kk 2 3 4 5 6 7 8 9 10
gk,19,19,1g_{k,19,19,1} {0,0} {0,0} {0,0} {0,0} 𝖥\mathsf{F} {0,0} {0,0} {0,0} {0,0}
kk 11 12 13 14 15 16 17 18 19
gk,19,19,1g_{k,19,19,1} {0,0} {0,0} {0,0} 𝖥\mathsf{F} {0,0} {0,0} {0,0} {0,0} {0,0}

3. Concluding remarks

Let NN be the set of all NkN_{k} given by

N={Nk>0{}:k2}.\displaystyle N=\{N_{k}\in\mathbb{Z}_{>0}\cup\{\infty\}:k\geq 2\}.

Determining the set NN is a fundamental question requiring further investigation. Our Theorem 1.2 ensures that the minimum of NN is 1919, and Table 1 suggests that

N={19,23,29,31,37,43,}.N=\{19,23,29,31,37,43,\dots\}.

Upon observing its initial terms, only prime numbers may seem to occur. However, for example, N5=214N_{5}=214 is a composite number, and by using the same approach as in our proof, it can be confirmed that the prime number 4141 is not included in NN. As discussed in [KobayashiSeki2023], it is not known whether NkN_{k} always takes a finite value for any k2k\geq 2, and whether supN\sup N is infinite.

Zagier [Zagier1996, Day 5, Problem 3] addressed the (22-)Göbel sequence and provided an asymptotic formula for gng_{n}, (see also [Finch2003, 6.10] and [Weisstein]). He also discussed heuristics suggesting that gp(p)g_{p}\in\mathbb{Z}_{(p)} 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 kk-Göbel sequences and varying the initial value choice of gk,1=2g_{k,1}=2. Consequently, NkN_{k} can be defined similarly. For instance, the 22-Göbel sequence with the initial value g2,1=3g^{\prime}_{2,1}=3 is given by

(g2,n)n=(3,6,16,76,1216,247456,612359566727,).(g^{\prime}_{2,n})_{n}=\left(3,6,16,76,1216,247456,\frac{61235956672}{7},\dots\right).

This example illustrates that altering the initial value can cause the loss of integrality property earlier than in the original kk-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.

References