In the sequence (A052530 - OEIS) $2, 8, 30, 112, ...$ where $a(n)= 4a(n-1) - a(n-2)$, the prime factors demonstrate periodic behavior for the first $28$ elements of the sequence. For example, $3$ and $5$ are factors of only the elements whose index is a multiple of $3$ (period $3$ within the sequence). On the other hand, $7$ is a prime factor for only the elements whose index is a multiple of $4$ (period $4$). $11$ and $19$ have period $5$, $13$ has period $6$, $41$ and $71$ both have period $7, 97$ has period $8, 17$ has period $9$ and so on.
It really surprised me that the first few primes behaved like this, even for the short span of the sequence that I was able to check. My question is, do all of the primes have periodic behavior within this sequence? Has periodicity of prime factors been observed before in recursive sequences (references)?
Here is my conjecture: If $n$ is the index of the sequence and $k$ is a natural number, then there is a prime of the form $2kn +1$ or $2kn-1$ that is a factor of the $n$th element with a period $n$ within the sequence. Take $41$ and $71$, which first show up as factors of the $7$th element $5822$. They are also factors of the $14$th, $21$st and $28$th elements. $41 = 2(3)(7)-1$ and $71 = 2(5)(7)+1.$ This general observation seems to hold for at least the primes up to $23$, albeit for a small sample of the sequence.
If the conjecture is true, then a natural outcome is an algorithm for finding large primes, ie. take a prime index of the sequence, and then find prime factors of this element by successively dividing $2kn \pm 1$. Repeat using the highest prime output as an index again, and so on.
Bob Tivnan