WorksMathematics
GPF-Tribonacci sequences admit no uniform linear bound
Abstract
A GPF-Tribonacci sequence is a sequence of primes in which every term is the greatest prime factor of the sum of the three preceding terms. Back and Caragiu asked whether there is a constant such that every term of every such sequence is at most times the largest of its three initial terms. We show that the answer is no. For every we show that there are GPF-Tribonacci sequences, starting from three distinct and arbitrarily large primes, in which three consecutive terms are all larger than times the largest initial term. This happens after steps. In the proof we prescribe the quotient of the sum of three consecutive terms by the next term. These quotients follow the periodic pattern . Then we apply the theorem of Green, Tao and Ziegler on linear equations in primes. The conjecture of Back and Caragiu that every GPF-Tribonacci sequence is ultimately periodic remains open.
Introduction
GPF sequences
For an integer , let be the greatest prime factor of . A GPF sequence is a sequence of primes that satisfies a recurrence of the form
with fixed non-negative integers . Sequences of this type were introduced by Caragiu and Scheckelhoff [7] in the case , and the general recurrence was introduced by Back and Caragiu [3]; see also [6, 12] and the monograph [5 Chapter 3]. Back and Caragiu conjectured that every sequence of this type is ultimately periodic [3 Conjecture 2].
The simplest case is the GPF-Fibonacci recurrence . Here the conjecture is a theorem: every GPF-Fibonacci sequence with enters the cycle 7, 3, 5, 2 [3 Theorem 3]. The proof uses a bound. All terms satisfy [3 Remark after Proposition 2]. The main reason is parity. If are odd primes, then is even, so . Only the prime 2 needs a separate argument.
The question of Back and Caragiu
The next case is the following.
Definition 1.1. A GPF-Tribonacci sequence is a sequence of primes such that
A GPF-Tribonacci sequence is determined by its three initial terms , , , which can be any primes. Now the parity argument is lost. The sum of three odd primes is odd, and it can even be a prime. Still, the computations of Back and Caragiu suggest that the behaviour is as regular as before. They ran the recurrence from 100,000 random triples of primes below 1000. Apart from the constant sequences, all of these sequences ended in one of only four cycles, of lengths 100, 212, 28 and 6 [3 Section 3]. They conjectured that every GPF-Tribonacci sequence is ultimately periodic [3 Conjecture 1]. They also observed that the terms can become large compared with the initial terms. For example, the sequence
2020 Mathematics Subject Classification. Primary 11B37; Secondary 11A41, 11N05, 11B30.
Key words and phrases. greatest prime factor, GPF sequence, Tribonacci recurrence, linear equations in primes.
Corresponding contributor: Ryuya Hora. that starts with 5, 13, 7 is periodic with period 100 and contains the term 1321. They then asked the following question [3 Section 3, (8)].
Question 1.2 (Back and Caragiu). Is there a constant such that every GPF-Tribonacci sequence satisfies
As they remark, a positive answer would prove that every GPF-Tribonacci sequence is ultimately periodic. Indeed, a bounded sequence of primes takes only finitely many values, and a sequence with values in a finite set that satisfies a recurrence of order three is ultimately periodic.
Main result
We show that the answer to Question 1.2 is negative.
Theorem 1.3. Let and be real numbers, and let be a positive integer with . Then there are pairwise distinct primes , , with the following properties. Let be the GPF-Tribonacci sequence with , and , and let .
(i) For we have , where is 1, 3 or 5 according to whether is congruent to 0, 1 or 2 modulo 3.
(ii) The three consecutive terms , and are all larger than .
Corollary 1.4. There are no real numbers and such that
holds for every GPF-Tribonacci sequence and every . In particular, the answer to Question 1.2 is negative.
We make three comments on what Theorem 1.3 says.
First, the initial primes depend on . So the theorem does not give one GPF-Tribonacci sequence that is unbounded. It does not decide the conjecture of Back and Caragiu that every GPF-Tribonacci sequence is ultimately periodic. That conjecture remains open. In fact, the conjecture is equivalent to the existence of some function such that for all GPF-Tribonacci sequences and all , because there are only finitely many triples of primes below a given bound. Our theorem says that such a function cannot be of the form . We also note that the proof gives no bound for the size of the initial primes in terms of .
Second, the initial primes can be taken larger than any given . So the large ratios are not an effect of small initial terms.
Third, the ratio is reached after steps, where we can take for the smallest positive integer with . The number is the smallest row sum of a matrix that we define in § 3; see also Remark 4.1. Up to a constant factor, this is the smallest possible number of steps. Indeed, each term of a GPF-Tribonacci sequence is at most the sum of the three preceding terms. By induction this gives
So if a term is larger than , then .
Example 1.5. The GPF-Tribonacci sequence with initial terms 149, 4549, 883 begins with
These twelve numbers are primes. In the first nine steps the quotients are 1, 3, 5, then again 1, 3, 5, and again 1, 3, 5. This is the pattern of Theorem 1.3(i) with . For instance, the first three steps are
The last three terms are larger than 1.5 times the largest initial term 4549. We found this example by a computer search. It only illustrates the pattern, and its ratios are still small.
Idea of the proof
We do not study the function gpf directly. Instead we decide in advance what the quotients
should be. Once the quotients are fixed, the recurrence becomes linear, namely . Conversely, suppose that a finite sequence of primes larger than 5 satisfies these linear relations with all in . Then is the greatest prime factor of , so the sequence is the beginning of a GPF-Tribonacci sequence.
So we need long finite sequences of primes that satisfy a system of linear equations. If we run the linear recurrence backwards, every term becomes a linear form with integer coefficients in the last three terms. The theorem of Green, Tao and Ziegler [13, 14, 15] says that finitely many such forms are simultaneously prime infinitely often, if no two of the forms are proportional, if there is no obstruction modulo any prime, and if the forms can be positive at the same time. The pattern is chosen so that two things hold at the same time, for every length . The linear recurrence expands, and there is no obstruction modulo any prime. The constant patterns do not have both properties (see Remark 4.2).
Related work
Other recurrences with the function gpf are presented in Chapter 3 of the monograph of Caragiu [5], with references to the original papers. We mention the results that are closest to ours, following that chapter. For the recurrence of order one, with a fixed positive integer , every sequence is ultimately periodic [7, 4]. Recurrences of order one in which the coefficients and the terms are matrices are studied in [8]. For the recurrence , in which each term depends on all the preceding terms, one has , so these sequences are not bounded [10]. There are also results on an analogue of the Proth–Gilbreath conjecture for the map [11], and on the binary operations on the set of primes [9]. For the GPF-Tribonacci recurrence, the chapter repeats the computations of [3] on a larger scale, and it does not discuss Question 1.2. The OEIS [17] contains the sequence that follows the GPF-Tribonacci recurrence from the initial terms 1, 1, 1 (A177904) and the cycle of length 212 that it enters (A177923).
There are similar recurrences in which the sum is divided in another way. In Conway’s subprime Fibonacci sequences, one adds the last two terms and, if the sum is composite, divides it by its smallest prime factor [16]. Alm and Herald took instead the smallest odd prime factor of the sum of the last two terms [1]. They proved that every such sequence terminates in a power of 2. They also proved that there are arbitrarily long sequences of this kind, in one way with the theorem of Dirichlet on primes in arithmetic progressions, and in another way with the theorem of Green and Tao on arithmetic progressions of primes. Alm, Herald, Miller and Sexton considered the sum of the last four terms, divided by 2 until the result is odd [2]. For every they construct, by a backward recursion, a sequence in which each of the first sums is divided by 2 only once. They also give a probabilistic model which suggests that most of these sequences are unbounded. Our proof also prescribes the divisions on an initial segment and goes backward, but for the function gpf and with all terms prime.
Organization
In § 2 we state the theorem on linear equations in primes in the form that we use. In § 3 we define the linear forms and prove three lemmas about them. In § 4 we prove Theorem 1.3 and Corollary 1.4.
Linear equations in primes
Let . A linear form on is a map of the form with integers . We use the same letter for its extension to a map . An open convex cone in is an open convex subset such that for all and all real .
Theorem 2.1 (Green–Tao–Ziegler). Let be non-zero linear forms on such that no two of them are rational multiples of each other. Let be an open convex cone. Assume the following two conditions.
(a) For every prime there is such that none of the integers is divisible by .
(b) There is such that are all positive.
Then there are infinitely many such that are all prime.
This is [13 Corollary 1.9] for linear forms without constant term. In [13] the statement is made for systems of finite complexity, and it is conditional on two conjectures, called GI() and MN() there. A system of linear forms without constant terms has finite complexity if and only if no two of the forms are rational multiples of each other [13, Lemma 1.6]. The conjecture MN() was proved in [14] and the conjecture GI() was proved in [15], for all . So Theorem 2.1 is unconditional.
The linear recurrence with quotients 1, 3, 5
One step forward and one step backward
We write vectors in as columns. For let
So
The matrix moves a window of three consecutive terms one step forward, when the quotient of this step is . The matrix moves the window one step backward, and is the identity matrix. Three steps forward with the quotients 1, 3, 5, in this order, are given by the matrix
and the three steps backward are given by
We will use two facts about these matrices. All entries of are positive, and all entries of are integers.
The linear forms
Fix a positive integer . We take the last three terms of the finite sequence as variables, and we express all the other terms by going backward.
Definition 3.1. For and let . We write the coordinates of this vector as
This defines linear forms on . Their coefficients are integers, because the entries of are integers. The forms depend on , but we do not show this in the notation.
So is the last window, and is the first window. Since , we have
Lemma 3.2. Let be , or according to whether is congruent to , or modulo . Then for every and every with we have
Proof. Let and write . By (1) we have . We apply the three matrices one after the other. We get
where , and . So , and the three equations that define , and are the claim for , and .
The forms are not proportional
Lemma 3.3. The linear forms are non-zero, they have integer coefficients, and no two of them are rational multiples of each other.
Proof. The coefficients of are the rows of the matrix . This matrix has integer entries and it is invertible. So the three forms have integer coefficients and they are non-zero.
We say that two linear forms are proportional if one of them is a real multiple of the other. We show that no two of our forms are proportional. To compare two forms we change the variable. We put , so that . By (1), in the variable the forms are given by the three rows of . An invertible linear change of the variable does not change whether two forms are proportional. So it is enough to show that two different rows, taken from the matrices , are never proportional.
Two different rows of the same matrix are not proportional, because is invertible.
Now let , and suppose that a row of is proportional to a row of . We multiply both rows from the right by . Then is a row of the identity matrix, and is a row of , and these two rows are proportional. A row of the identity matrix has two entries equal to . But all entries of are positive, so all entries of are positive. This is a contradiction.
No obstruction modulo a prime
Lemma 3.4. For every prime there is a vector such that none of the $3N+3$ integers is divisible by $p.
Proof. First let . We take . A direct computation gives . So for all . Hence every is, up to sign, a power of , and it is not divisible by . Now let . We take . A direct computation gives , and this vector is congruent to modulo 5. So is congruent to modulo 5 for all . Hence every is congruent to or modulo 5, and it is not divisible by 5. □
Some of the integers in this proof are negative. This is not a problem, because condition (a) of Theorem 2.1 is only about divisibility. Positivity is the subject of the next lemma.
A cone on which the forms are positive and grow
For we write and for the smallest and the largest coordinate of , and for the Euclidean norm. We write . For two vectors we write if this inequality holds in every coordinate.
Lemma 3.5. Let be a real number and let be a positive integer with . Then there are an open convex cone and a real number such that every has the following properties.
We have for .
The numbers , and are pairwise distinct.
We have .
Proof. We first look at the vector . The row sums of are , and , so . The entries of are positive, so multiplication by preserves the relation between vectors. By induction we get , and therefore
We cannot use the vector itself, because its coordinates are equal and because Theorem 2.1 needs an open cone. So we move away from a little. The function is continuous on , and . So there is a neighbourhood of on which is positive and on which all coordinates are positive. In this neighbourhood we choose a point whose three coordinates are pairwise distinct. Then we choose so small that every point of the closed ball
has positive and pairwise distinct coordinates and satisfies . Now we define
The set is the set of positive multiples of the points of an open ball. A ball is open and convex, and both properties pass to the set of positive multiples. So is an open convex cone. The set is its image under an invertible linear map, so is an open convex cone as well.
Let . We write with and . In particular . Then , and by (1) we have for .
Property (2) holds because are the coordinates of , and the coordinates of are pairwise distinct.
Property (3) holds because are the coordinates of , and gives
For property (1), consider the functions on the compact set . By (1) they are the coordinates of the vectors with . These coordinates are positive, because the coordinates of are positive and the entries of are positive. The functions are continuous. So there is such that for all and all . There is also such that for all . For as above we get
So property (1) holds with .
Proofs of the main results
Proof of Theorem 1.3. Let , and be as in the theorem. We take the linear forms of Definition 3.1, and the cone and the number of Lemma 3.5.
We check the assumptions of Theorem 2.1 for these forms and this cone. The forms are non-zero and no two of them are rational multiples of each other, by Lemma 3.3. Condition (a) holds by Lemma 3.4. For condition (b), note that is open and not empty, so it contains a point with rational coordinates. A positive integer multiple of this point lies in , and all forms are positive on by Lemma 3.5(1).
So Theorem 2.1 gives infinitely many such that are all prime. Only finitely many points of lie in a given ball. So we can choose such a with . We put
By Lemma 3.5(1), every is a prime larger than .
We claim that are the first terms of the GPF-Tribonacci sequence with initial terms . Let . By Lemma 3.2 we have with . The prime factors of are the prime and possibly 3 or 5. Since , we get
This proves the claim by induction on , and it also proves (i).
Finally let , and . These are primes larger than . They are pairwise distinct by Lemma 3.5(2). Statement (ii) is Lemma 3.5(3).
Proof of Corollary 1.4. Suppose that such numbers and exist. We may replace by and by , so we may assume that and . We apply Theorem 1.3 with and , and with any positive integer such that . For the sequence that we get, the number is larger than , and
This contradicts the assumption. A constant as in Question 1.2 would give such numbers with . So the answer to Question 1.2 is negative.
We end with two remarks on the construction.
Remark 4.1 (The growth rate). The characteristic polynomial of is . So the eigenvalues of are and , and the largest one is . Since all entries of are positive, the Perron–Frobenius theorem shows that the entries of grow like . The number in Theorem 1.3 is therefore not the best possible, but it makes the statement and the proof short. For example, the vector satisfies . If we use instead of 1 in the proof of Lemma 3.5, we get Theorem 1.3 under the weaker assumption . The eigenvalue of is the eigenvalue 5 of , and the vector in the proof of Lemma 3.4 is an eigenvector for it.
Remark 4.2 (Why the quotients are not all equal). One may ask why we do not use simpler patterns of quotients.
If all quotients are equal to the same number , then each new term is at most the average of the three preceding terms, and the terms do not grow. If all quotients are equal to 1, then the terms grow fast, but such a sequence of primes larger than 3 has at most six terms. The reason is the prime 3. Let be integers with for . We claim that at least one of them is divisible by 3.
Suppose that none of them is divisible by 3. Then each is congruent to 1 or to modulo 3. Consider three such numbers. If their residues are all equal, then their sum is divisible by 3. If not, then two of the residues are equal, and the sum is congruent to this residue. So the residue of each new term is the residue that appears twice among . Let be the residue that appears twice among . There are three cases for the residues of , and in each case the rule determines the next residues:
In each case we get a contradiction. This proves the claim. In particular, if seven consecutive terms of a GPF-Tribonacci sequence are larger than 3, then the four quotients between them are not all equal to 1. Six terms are possible, for example .
The order of the quotients also matters. For the pattern , the relations and give . So is divisible by 3.
The pattern avoids both problems. The terms still grow, by Lemma 3.5, and there is no obstruction modulo any prime, by Lemma 3.4.
Contributions and use of AI tools
The construction and the proof in this paper were produced by AI systems. This happened on 14 November 2026, during the mathematics workshop at Zushi Fes of ZEN University, where the question of Back and Caragiu was one of the problems. OpenAI models, with the identifiers gpt-6-astra and gpt-6.1-sol and run in OpenAI Codex, found the pattern and wrote a first proof in Japanese. On the same day, a report written by Claude Fable 5.2 (Anthropic) reached the same conclusion with the quotients in the order . The English text of this paper was written on 17 November 2026 by Claude Fable 5.2, run in Claude Code, on the basis of the Japanese proof. The same system found Example 1.5 by a computer search, and it checked again the matrix identities, the two remarks in § 4 and the bibliographic data. Codex and Claude Code are commercial products of OpenAI and Anthropic.
The corresponding contributor, Ryuya Hora, has read the proof carefully. Other participants of the workshop also contributed to this work. They are not responsible for the content of this paper.
References
- [1]Jeremy F. Alm and Taylor Herald, A note on prime Fibonacci sequences, Fibonacci Quart. 54 (2016), no. 1, 55–58.arxiv.org/abs/1507.04807
- [2]Jeremy F. Alm, Taylor Herald, Ellen Rammelkamp Miller, and Dave Sexton, 2-free Tetranacci sequences, 2017, Preprint, arXiv:1710.00930.arxiv.org/abs/1710.00930
- [3]Greg Back and Mihai Caragiu, The greatest prime factor and recurrent sequences, Fibonacci Quart. 48 (2010), no. 4, 358–362.DOI
- [4]Mihai Caragiu, Recurrences based on the greatest prime factor function, JP J. Algebra Number Theory Appl. 19 (2010), no. 2, 155–163.
- [5]______, Sequential experiments with primes, Springer, Cham, 2017.DOI
- [6]Mihai Caragiu and Greg Back, The greatest prime factor and related magmas, JP J. Algebra Number Theory Appl. 15 (2009), no. 2, 127–136.
- [7]Mihai Caragiu and Lisa Scheckelhoff, The greatest prime factor and related sequences, JP J. Algebra Number Theory Appl. 6 (2006), no. 2, 403–409.
- [8]Mihai Caragiu, Lauren Sutherland, and Mohammad Zaki, Multidimensional greatest prime factor sequences, JP J. Algebra Number Theory Appl. 23 (2011), no. 2, 187–195.
- [9]Mihai Caragiu and Paul A. Vicol, Prime magmas and a cyclicity conjecture, JP J. Algebra Number Theory Appl. 38 (2016), no. 2, 129–143.DOI
- [10]Mihai Caragiu, Alexandru Zaharescu, and Mohammad Zaki, On a class of solvable recurrences with primes, JP J. Algebra Number Theory Appl. 26 (2012), no. 2, 197–208.
- [11]———, An analogue of the Proth–Gilbreath conjecture, Far East J. Math. Sci. (FJMS) 81 (2013), no. 1, 1–12.
- [12]———, On Ducci sequences with primes, Fibonacci Quart. 52 (2014), no. 1, 32–38.DOI
- [13]Ben Green and Terence Tao, Linear equations in primes, Ann. of Math. (2) 171 (2010), no. 3, 1753–1850.arxiv.org/abs/math/0606088
- [14]———, The Möbius function is strongly orthogonal to nilsequences, Ann. of Math. (2) 175 (2012), no. 2, 541–566.DOI
- [15]Ben Green, Terence Tao, and Tamar Ziegler, An inverse theorem for the Gowers U^{s+1}[N]-norm, Ann. of Math. (2) 176 (2012), no. 2, 1231–1372, see also the erratum of April 2024 announced on the arXiv page of arXiv:1009.3998.arxiv.org/abs/1009.3998
- [16]Richard K. Guy, Tanya Khovanova, and Julian Salazar, Conway’s subprime Fibonacci sequences, Math. Mag. 87 (2014), no. 5, 323–337.DOI
- [17]OEIS Foundation Inc., The On-Line Encyclopedia of Integer Sequences, 2026, Published electronically at https://oeis.org.