OFFSET
1,3
COMMENTS
This sequence represents the indices k of the Padovan numbers whose sum of adjacent squares results in a prime. The primality of terms up to a(15) (index 102) was verified deterministically using SymPy's "isprime". The primality of a(23) (index 3042), a 744 digit number, was rigorously verified using the APRCL algorithm in PARI/GP. Terms from a(24) onwards are strong probable primes.
LINKS
EXAMPLE
For k = 0: P(0) = 1, P(1) = 1. 1^2 + 1^2 = 2, which is prime. So a(1) = 0.
For k = 1: P(1) = 1, P(2) = 1. 1^2 + 1^2 = 2, which is prime. So a(2) = 1.
For k = 2: P(2) = 1, P(3) = 2. 1^2 + 2^2 = 5, which is prime. So a(3) = 2.
For k = 3: P(3) = 2, P(4) = 2. 2^2 + 2^2 = 8, which is not prime.
For k = 4: P(4) = 2, P(5) = 3. 2^2 + 3^2 = 13, which is prime. So a(4) = 4
PROG
(Python)
from sympy import isprime
def a134816(n):
# Padovan sequence generator
a, b, c = 1, 1, 1
for _ in range(n):
a, b, c = b, c, a + b
return a
def generate_sequence(limit):
indices = []
for k in range(limit):
candidate = a134816(k)**2 + a134816(k+1)**2
if isprime(candidate):
indices.append(k)
return indices
# The first 29 terms are found by calling generate_sequence(17251)
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Fırat Karayıldız, Feb 28 2026
EXTENSIONS
a(30)-a(34) from Michael S. Branicky, Mar 01 2026
STATUS
approved
