Can you provide a proof or a counterexample for 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 integer , $ 3\nmid b , 5\nmid b $ and $n\ge2$ . Let $S_i=P_b(S_{i-1})$ with $S_0=P_{b/2}(P_{b/2}(8))$ , then $F_n(b)$ is prime iff $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 $b \in [2,10000]$ with $n \in [2,10]$ and there were no counterexamples .


A command line program that implements this test can be found here .

  • $\begingroup$ Looks like a generalization of arxiv.org/abs/0705.3664 (which concerns $b=2$) $\endgroup$ – Max Alekseyev Apr 22 '18 at 13:09
  • $\begingroup$ @MaxAlekseyev Actually this is a generalization of Inkeri's primality test for Fermat numbers...Reference : Tests for primality, Ann. Acad. Sci. Fenn. Ser. A I 279 (1960), 1-19. $\endgroup$ – Peđa Terzić Apr 22 '18 at 13:43
  • $\begingroup$ It might be worth noting that the $P_m$ satisfy a particularly straightforward linear recurrence. $\endgroup$ – Steven Stadnicki Apr 24 '18 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.