This question is successor of Primality test for specific class of generalized Fermat numbers .
Can you provide a proof or a counterexample for the claim given below?
Inspired by Lucas–Lehmer–Riesel primality test I have formulated the following claim:
Let $P_m(x)=2^{-m}\cdot((x-\sqrt{x^2-4})^m+(x+\sqrt{x^2-4})^m)$ . Let $F_n(b)= b^{2^n}+1 $ where $b$ is an even natural number and $n\ge2$ . Let $a$ be a natural number greater than two such that $\left(\frac{a-2}{F_n(b)}\right)=-1$ and $\left(\frac{a+2}{F_n(b)}\right)=-1$ where $\left(\frac{}{}\right)$ denotes Jacobi symbol. Let $S_i=P_b(S_{i-1})$ with $S_0$ equal to the modular $P_{b/2}(P_{b/2}(a))\phantom{5} \text{mod} \phantom{5} F_n(b)$. Then $F_n(b)$ is prime if and only if $S_{2^n-2} \equiv 0 \pmod{F_n(b)}$ .
You can run this test here. A list of generalized Fermat primes sorted by base $b$ can be found here. I have tested this claim for many random values of $b$ and $n$ and there were no counterexamples.
A command line program that implements this test can be found here.
Android app that implements this test can be found here .
Python script that implements this test can be found here.
Mathematica notebook that implements this test can be found here.