1
$\begingroup$

Let $L$ be a cyclotomic field, and $P$ a prime ideal of $\mathcal{O}_L$.

  1. is there any symbol for the equation $ax^2 + by^2 =1 \mod P$ and if so, is it computable in polynomial time? if $a$ is invertible modulo $P$ this is equivalent to $(1-by^2)/a$ is a square in $\mathcal{O}_L/P$.

  2. is there any algorithm to find such $x$ and $y$ ? all such possible $(x,y)$?

  3. an interesting case is: $a=b$ and $a$ is invertible modulo $P$.

Update: for $P$ above $2$, (wlog) $ord_P(a) = 0$ and $ord_P(b)=1$ there is an algorithm that outputs a solution (Algorithm 6.2)

$\endgroup$
5
  • 1
    $\begingroup$ Is "symbol" in (1) supposed to be "solution"? $\endgroup$
    – LSpice
    Commented Nov 16 at 15:55
  • $\begingroup$ @LSpice a symbol to tell if a solution exists. $\endgroup$
    – Don Freecs
    Commented Nov 16 at 19:33
  • 1
    $\begingroup$ Reminds me of the Hilbert Norm Residue symbol en.wikipedia.org/wiki/Hilbert_symbol $\endgroup$
    – Will Jagy
    Commented Nov 17 at 2:23
  • $\begingroup$ @WillJagy yeah, what I know about Hilbert's symbol modulo a prime ideal is about completions $\endgroup$
    – Don Freecs
    Commented Nov 17 at 8:01
  • 1
    $\begingroup$ Please use a high-level tag like "nt.number-theory". I added this tag now. Regarding high-level tags, see meta.mathoverflow.net/q/1075 $\endgroup$
    – GH from MO
    Commented Nov 17 at 14:21

1 Answer 1

1
$\begingroup$

This problem should really be posed over a general finite field (reductions of elements in $\mathcal O_L$ modulo $P$ can be computed in polynomial time).

Over any finite field $F$, the equation $ax^2+by^2=1$ has a solution whenever $a,b\neq 0$. This can be deduced using the pigeonhole principle, observing that the image sets of the maps $ax^2$ and $1-bx^2$ have total size $>|F|$ and therefore must overlap. If $a=0,b\neq 0$ (resp. $a\neq 0,b=0$) then there is a solution iff $b$ (resp. $a$) is a square in $F$. This condition can be checked in polynomial time by computing a Legendre symbol.

As for finding a solution (I will focus on the case $a,b\neq 0$), one simple approach is to pick $y$ at random and check if $1-by^2$ is a square, then if it is compute a square root. This gives a probabilistic polynomial time algorithm.

A deterministic polynomial-time algorithm is available as well, see here https://scholars.iwu.edu/files/39699175/fulltext.pdf

$\endgroup$
2
  • $\begingroup$ I have a sage code using the randomized approach you described it finds a solution up to degree 64 but I want to prove it works always thanks a lot for your answer it is insightful $\endgroup$
    – Don Freecs
    Commented Nov 18 at 18:55
  • $\begingroup$ Thanks @Alexei Entin $\endgroup$
    – Don Freecs
    Commented Nov 20 at 14:13

You must log in to answer this question.