I want to prove that $n=\frac{4^p+1}{5}$ is a strong $2$-pseudoprime for all $p>5$ where $p$ is a prime.
i.e. $n$ is a composite number which passes the Miller-Rabin test.
It is easy to check that it is indeed a composite no.
We write $n-1=2^st$ where $t$ is an odd number. $n$ passes the test if either
$$a^t\equiv1 \pmod{n}$$ or
$$a^{{2^i}t}\equiv-1 \pmod{n}$$ for some $i<s$.
Then $n-1=\frac{4^p+1}{5}-1= \space ... \space=2^2(\frac{4^{p-1}\space-1}{5})$
so $s=2$ and $t=\frac{4^{p-1}\space-1}{5}$
So is $$2^{\frac{4^{p-1}\space-1}{5}}\equiv1\pmod{\frac{4^p+1}{5}}$$
or
$$2^{2^1(\frac{4^{p-1}\space-1}{5})} \equiv -1 \pmod{\frac{4^p+1}{5}}$$?
I checked the results for the first few primes (Yup, WolframAlpha did help). It turns out that it is always the latter case which holds
My guess is that:
if $p\equiv3 \space \pmod{4}$ then $2^{\frac{4^{p-1}\space-1}{5}}\equiv2^p \pmod{\frac{4^p+1}{5}}$
if $p\equiv1 \space \pmod{4}$ then $2^{\frac{4^{p-1}\space-1}{5}}\equiv-2^p\space \pmod{\frac{4^p+1}{5}}$.
Squaring both sides and the result follows. Could anyone show why my guess is correct (or not?)?
I think you are expected to make the following observations:
So after step 3 we have confirmed your first finding. Which also shows that $2$ is an "anti-witness".