On numbers n dividing the nth term of a linear recurrence
Juan Jose´ Alba Gonzalez´ Instituto de Matem´aticas, Universidad Nacional Autonoma de M´exico, C.P. 58089, Morelia, Michoac´an, M´exico [email protected] Florian Luca Instituto de Matem´aticas, Universidad Nacional Autonoma de M´exico, C.P. 58089, Morelia, Michoac´an, M´exico [email protected] Carl Pomerance Mathematics Department, Dartmouth College, Hanover, NH 03755, USA [email protected] Igor E. Shparlinski Dept. of Computing, Macquarie University Sydney, NSW 2109, Australia [email protected]
Abstract
Here, we give upper and lower bounds on the count of positive integers n x dividing the nth term of a nondegenerate linearly ≤ recurrent sequence with simple roots.
1 1 Introduction
Let un n 0 be a linear recurrence sequence of integers satisfying a homoge- ≥ neous{ linear} recurrence relation
un+k = a1un+k 1 + + ak 1un+1 + akun, for n =0, 1,..., (1) − − where a ,...,a are integers with a = 0. 1 k k In this paper, we study the set of indices n which divide the corresponding term un; that is, the set:
:= n 1 : n u . Nu { ≥ | n} But first, some background on linear recurrence sequences. To the recurrence (1), we associate its characteristic polynomial
m k k 1 σi fu(X) := X a1X − ak 1X ak = (X αi) Z[X], − − − − − − ∈ i=1 where α ,...,α C are the distinct roots of f (X) with multiplicities 1 m ∈ u σ1,...,σm, respectively. It is then well-known that the general term of the recurrence can be expressed as
m n un = Ai(n)αi , for n =0, 1,..., (2) i=1 where A (X) are polynomials of degrees at most σ 1 for i =1,...,m, with i i − coefficients in K := Q[α1,...,αm]. We refer to [4] for this and other known facts about linear recurrence sequences. For upper bounds on the distribution of u, the case of a linear recurrence with multiple roots already can pose problemsN (but see below). For example, the sequence of general term u = n2n for all n 0 having characteristic n ≥ polynomial f (X)=(X 2)2 shows that may contain all the positive u − Nu integers. So, we look at the case when fu(X) has only simple roots. In this case, the relation (2) becomes
k n un = Aiαi , for n =0, 1,.... (3) i=1
2 Here, A1,...,Ak are constants in K. We may assume that none of them is zero, since otherwise, a little bit of Galois theory shows that the integer sequence un n 0 satisfies a linear recurrence of a smaller order. ≥ We remark{ } in passing that there is no real obstruction in reducing to the case of the simple roots. Indeed, let D N be a common denominator of all ∈ the coefficients of all the polynomials Ai(X) for i = 1,...,m. That is, the coefficients of each DAi are algebraic integers. Then
m m Du = DA (0)αn + D(A (n) A (0))αn. n i i i − i i i=1 i=1 If n , then n Du . Since certainly n divides1 the algebraic integer ∈Nu | n m D(A (n) A (0))αn, i − i i i=1 m n it follows that n divides i=1 DAi(0)αi . If this is identically zero (i.e., Ai(0) = 0 for all i = 1,...,m), then we are in an instance similar to the instance of the sequence of general term u = n2n for all n 0 mentioned n ≥ above. In this case, u contains at least a positive proportion of all the positive integers (namely,N all n coprime to D). Otherwise, we may put
m n wn = DAi(0)αi for n =0, 1,.... i=0 A bit of Galois theory shows that w is an integer for all n 0, and the n ≥ sequence wn n 0 satisfies a linear recurrence relation of order ℓ := # 1 { } ≥ { ≤ i m : A (0) = 0 with integer coefficients, which furthermore has only ≤ i } simple roots. Hence, u w, and therefore there is indeed no loss of generality when provingN upper⊆ N bounds in dealing only with linear recurrent sequences with distinct roots. We put ∆ := (α α )2 = disc(f ) (4) u i − j u 1 i