Composite terms of shifted Lucas sequences

TheoremComposite terms of the Lucas sequence \(U_n(3, -4)\)#●ready to prove

Let \(U_n = U_n(3, -4)\) be the Lucas sequence with \(U_0 = 0\), \(U_1 = 1\) and \(U_{n+2} = 3U_{n+1} + 4U_n\), so that \(U_n = 0, 1, 3, 13, 51, 205, 819, \ldots\). For every natural number \(n \ge 4\), \(U_n\) is composite: \(U_n > 1\) and \(U_n\) is not prime.

public theorem_wanted lucasU_three_neg_four_composite {n : ℕ} (hn : 4 ≤ n) :
    1 < lucasU ⟨3, -4, by decide⟩ n ∧ ¬ (lucasU ⟨3, -4, by decide⟩ n).natAbs.Prime
Sources
  • Dan Ismailescu, Daniel Hyunwoo Jeon, Aaron Kim, Joonbeom Kwon and Austin Lee, Shifting Lucas Sequences Away from Primes, INTEGERS 25 (2025), Article A42, Theorem 1.
Uses 2

TheoremUnit shifts of \(U_n(P, 1)\) are eventually composite#●ready to prove

Let \(P \ge 3\) be an integer and let \(U_n = U_n(P, 1)\) be the Lucas sequence with \(U_0 = 0\), \(U_1 = 1\) and \(U_{n+2} = PU_{n+1} - U_n\). Then there is a natural number \(N\) such that for every \(n \ge N\) the three integers \(U_n - 1\), \(U_n\) and \(U_n + 1\) are all composite, that is, each is greater than \(1\) and not prime.

public theorem_wanted lucasU_q_one_shifts_eventually_composite {P : ℤ} (hP : 3 ≤ P) :
    ∃ N : ℕ, ∀ n ≥ N, ∀ d ∈ ({-1, 0, 1} : Set ℤ),
      1 < lucasU ⟨P, 1, by decide⟩ n + d ∧ ¬ (lucasU ⟨P, 1, by decide⟩ n + d).natAbs.Prime
Sources
  • Dan Ismailescu, Daniel Hyunwoo Jeon, Aaron Kim, Joonbeom Kwon and Austin Lee, Shifting Lucas Sequences Away from Primes, INTEGERS 25 (2025), Article A42, Theorem 2.
Uses 2

TheoremA shift of \(U_n(P, -1)\) away from primes#●ready to prove

Let \(P \ge 1\) be an integer and let \(U_n = U_n(P, -1)\) be the Lucas sequence with \(U_0 = 0\), \(U_1 = 1\) and \(U_{n+2} = PU_{n+1} + U_n\). Then there is an integer \(K > 0\) such that for every natural number \(n\) the three integers \(U_n + K - 1\), \(U_n + K\) and \(U_n + K + 1\) are all composite, that is, each is greater than \(1\) and not prime.

public theorem_wanted exists_shift_lucasU_q_neg_one_composite {P : ℤ} (hP : 1 ≤ P) :
    ∃ K : ℤ, 0 < K ∧ ∀ n : ℕ, ∀ d ∈ ({-1, 0, 1} : Set ℤ),
      1 < lucasU ⟨P, -1, by decide⟩ n + K + d ∧
        ¬ (lucasU ⟨P, -1, by decide⟩ n + K + d).natAbs.Prime
Sources
  • Dan Ismailescu, Daniel Hyunwoo Jeon, Aaron Kim, Joonbeom Kwon and Austin Lee, Shifting Lucas Sequences Away from Primes, INTEGERS 25 (2025), Article A42, Theorem 3.
Uses 2

TheoremLucas sequences with square \(Q\) have finitely many prime terms#●ready to prove

Let \(P\) and \(Q\) be integers with \(P \ge 1\) and \(P^2 - 4Q > 0\), where \(Q \ne 0\) is a perfect square, and let \(U_n = U_n(P, Q)\) be the Lucas sequence with \(U_0 = 0\), \(U_1 = 1\) and \(U_{n+2} = PU_{n+1} - QU_n\). Then \(|U_n|\) is prime for only finitely many natural numbers \(n\).

public theorem_wanted lucasU_square_q_finite_primes {P Q : ℤ} (hQ : Q ≠ 0) (hP : 1 ≤ P)
    (hD : 0 < P ^ 2 - 4 * Q) (hsq : IsSquare Q) :
    {n : ℕ | (lucasU ⟨P, Q, hQ⟩ n).natAbs.Prime}.Finite
Sources
  • Dan Ismailescu, Daniel Hyunwoo Jeon, Aaron Kim, Joonbeom Kwon and Austin Lee, Shifting Lucas Sequences Away from Primes, INTEGERS 25 (2025), Article A42, Theorem 4(a) (quoted from their reference [2]).
Uses 2

TheoremLucas sequences with power parameters have finitely many prime terms#●ready to prove

Let \(x \ne y\) be real numbers such that \(x + y\) and \(xy\) are integers, and let \(r > 1\) be a natural number. Let \(P\) and \(Q\) be integers with \(P = x^r + y^r\) and \(Q = x^r y^r\), and suppose \(Q \ne 0\), \(P \ge 1\) and \(P^2 - 4Q > 0\). Let \(U_n = U_n(P, Q)\) be the Lucas sequence with \(U_0 = 0\), \(U_1 = 1\) and \(U_{n+2} = PU_{n+1} - QU_n\). Then \(|U_n|\) is prime for only finitely many natural numbers \(n\).

public theorem_wanted lucasU_power_params_finite_primes {x y : ℝ} (hxy : x ≠ y) {a b : ℤ}
    (hs : x + y = a) (hp : x * y = b) {r : ℕ} (hr : 1 < r) {P Q : ℤ} (hQ : Q ≠ 0)
    (hPdef : (P : ℝ) = x ^ r + y ^ r) (hQdef : (Q : ℝ) = x ^ r * y ^ r) (hP : 1 ≤ P)
    (hD : 0 < P ^ 2 - 4 * Q) :
    {n : ℕ | (lucasU ⟨P, Q, hQ⟩ n).natAbs.Prime}.Finite
Sources
  • Dan Ismailescu, Daniel Hyunwoo Jeon, Aaron Kim, Joonbeom Kwon and Austin Lee, Shifting Lucas Sequences Away from Primes, INTEGERS 25 (2025), Article A42, Theorem 4(b) (quoted from their reference [2]).
Uses 2

TheoremFibonacci numbers shifted by \(14475\) are never prime#●ready to prove

Let \(F_n\) be the \(n\)-th Fibonacci number, with \(F_0 = 0\), \(F_1 = 1\) and \(F_{n+2} = F_{n+1} + F_n\). For every natural number \(n\), the number \(F_n + 14475\) is not prime.

public theorem_wanted fib_add_14475_not_prime (n : ℕ) : ¬ (Nat.fib n + 14475).Prime
Sources
  • Dan Ismailescu, Daniel Hyunwoo Jeon, Aaron Kim, Joonbeom Kwon and Austin Lee, Shifting Lucas Sequences Away from Primes, INTEGERS 25 (2025), Article A42, Theorem 5.
6 ready to prove

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.