Skip to main content
2 of 2
edited body
Fedor Petrov
  • 108.9k
  • 9
  • 264
  • 459

Start with $$(\phi-i)(\phi-(p+1-i))=\phi^2-\phi(p+1)+i(p+1-i)=p(i-\phi)+(1+i-i^2).$$ Using this for $i=1,2,\ldots,(p-1)/2$ we get $$ \prod_{j=1}^p(\phi-j)=\left(\phi-\frac{p+1}2\right)\prod_{i=1}^{(p-1)/2}\left(p(i-\phi)+(1+i-i^2)\right). $$ Expand the brackets and take it modulo $p^2\mathbb{Z}[\phi]$. We get $$ M:=\left(\phi-\frac{p+1}2\right)\prod_{i=1}^{(p-1)/2}\left(1+i-i^2\right)+p\left(\phi-\frac12\right)\prod_{i=1}^{(p-1)/2}\left(1+i-i^2\right)\sum_{i=1}^{(p-1)/2}\frac{i-\phi}{1+i-i^2}. $$ Denote $T=\prod_{i=1}^{(p-1)/2}\left(1+i-i^2\right)$. Considering $M$ modulo $p$ we get $-\sqrt{5}T/2$, thus by your calculation of $M$ modulo $p$ we get $T\equiv -2\pmod p$. Next, we should look mod $p$ for $$ \frac{M-\sqrt{5}}{p}=-\sqrt{5}\frac{T+2}{2p}+T\left(-\frac12-\frac{\sqrt{5}}2\sum_{i=1}^{(p-1)/2}\frac{i-\phi}{1+i-i^2}\right). $$ And here we should look for ``rational'' part, which must be equal to $\frac12$ modulo $p$. This rational part equals $$ T\left(-\frac12-\frac54\sum_{i=1}^{(p-1)/2}\frac{1}{1+i-i^2}\right), $$ and our claim reduces to $$ \sum_{i=1}^{(p-1)/2}\frac{1}{1+i-i^2}\equiv -\frac15 \pmod p. $$ This can not be hard and it is not. We have $1+i-i^2=5/4-(i-1/2)^2$. The guys $(i-1/2)^2$ run over the set $\mathcal{R}$ of all non-zero quadratic residues when $i$ goes from 1 to $(p-1)/2$ (indeed, they are quadratic residues for sure, non-zero and mutually distinct: if $(i-1/2)^2=(j-1/2)^2$, then either $i=j$ or $p$ divides $i+j-1$ which can non be in our range). So we should have $\sum_{r\in \mathcal{R}} 1/(5/4-r)=-1/5$. Denote $f(x)=\prod(x-r)=x^{(p-1)/2}-1$. We should prove $\frac{f'(5/4)}{f(5/4)}=-1/5$. This is true: $f(5/4)=-2$, $f'(5/4)=\frac{p-1}2\cdot (-1)\cdot \frac45=\frac25$.

Fedor Petrov
  • 108.9k
  • 9
  • 264
  • 459