J
OURNAL DE
T
HÉORIE DES
N
OMBRES DE
B
ORDEAUX
R. A. M
OLLIN
A. J. V
AN DER
P
OORTEN
H. C. W
ILLIAMS
Halfway to a solution of X
2− DY
2= −3
Journal de Théorie des Nombres de Bordeaux, tome
6, n
o2 (1994),
p. 421-457
<http://www.numdam.org/item?id=JTNB_1994__6_2_421_0>
© Université Bordeaux 1, 1994, tous droits réservés.
L’accès aux archives de la revue « Journal de Théorie des Nombres de Bordeaux » (http://jtnb.cedram.org/) implique l’accord avec les condi-tions générales d’utilisation (http://www.numdam.org/conditions). Toute uti-lisation commerciale ou impression systématique est constitutive d’une infraction pénale. Toute copie ou impression de ce fichier doit conte-nir la présente mention de copyright.
Article numérisé dans le cadre du programme Numérisation de documents anciens mathématiques
Halfway
to aSolution of X2 - DY2
= -3by
R. A.MOLLIN1,
A. J. VAN DERPOORTEN2
AND H. C.WILLIAMS3
ABSTRACT. - It is well known that the continued fraction expansion of
~D
readily displays the midpoint of the principal cycle of ideals, that is,the point halfway to a solution of x2 -
Dy2
= ±1. Here we notice that,analogously, the point halfway to a solution of x2 -
Dy2 =
-3 can be recognised. We explain what is going on.RÉSUMÉ - Il est bien connu que le développement en fraction continue de
~D
donne facilement le milieu du cycle principal des idéaux, c’est à dire le point à mi-parcourt d’une solution de x2 -Dy2
= ±1. Nous montrons icique de façon analogue le point à mi-parcourt d’une solution de x2 -
Dy2
=-3 peut-être reconnu. Nous expliquons ce qu’il en est.
1. Introduction
Let D be a
positive integer,
not a square. It isquite
well known thatif
(X, Y)
is a solution to Pell’sequation X 2 - Dy2
= 1 then there areintegers
x , y so thatwith
x/y
aconvergent
ofJD
occurring
half as faralong
the continuedfraction
expansion
ofJD
as does theconvergent
X/Y .
Herex2 -Dy2
=Q
with
Q
a divisor of 4D - there is anambiguous
idealhalfway along
theperiod
of reduced ideals.Similarly,
ifX2 -
Dy2
= -1 then there are consecutiveconvergents
x’/y’
and ofJD,
onceagain
occurring
half as faralong
the continuedfraction
expansion
ofJD
as does theconvergent
X/Y,
so that1991 Mathematics Subject Classification. 11A55.
mots-cl6s : continued fraction, ideal, quadratic form, ambiguous cycle. Manuscrit regu le 24 mars 1994, version definitive le 16 décembre 1994.
1
Research supported by NSERC Canada grant #A8484.
2 Work
supported in part by grants from the Australian Research Council and by a
research agreement with Digital Equipment Corporation.
3 Research
Here we have
x’2 -
Dy’2
=±Q
andx2 -
Dy2
=reporting
that Dis a sum of squares D =
Q2
+P2 .
There is a little more to it than
just
that. Of course if D is not asquare there is
always
a solution forX2 - Dy2
=1,
but whilst it isadditionally
necessary that D - 1(mod 4),
or D - 2(mod 8),
for thereto be a solution to
= -1,
there is nosimple
sufficient congruencecondition on D or on its factors.
It is also well understood that if d
I 4D
with ]d[
VD
and dsquarefree
then a solution toX2-DY2
= d occurshalfway along
thecomplete period.
In
particular
a solution toX2 - Dy2
= +2always
has theconvergent
X/Y
occurring
halfway along
thecomplete period.
IfX 2 - Dy2
= ±4 then thatsolution occurs a third of the way
along
thecomplete
period.
These matters are discussed in some detail in[4]
and[5].
As
regards
PROPOSITION 1.
If
X 2 -
Dy2
= k thenX/Y is
aconvergent
of
B/D
if
Ikl I
VD.
Proof.
If k 0 then XY v0
so X = +X)
1 /2Y,
whilst if k > 0 then
1/2X .
Hence in the first caseX/Y
is aconvergent
ofVD
and in the second caseY/X
is aconvergent
ofand
again
X/Y
is aconvergent
ofv0.
For
large
K the literature isfairly
silent,
beyond explaining
a method-
seemingly
reduction of aquadratic
form - whichrelates,
forarbitrary
integers K,
solutions ofX 2 - Dy2
= K toconvergents
ofB/D.
Our
finding
halfway
to a solution ofX2 - Dy2
= -3 will include ourgiving
a necessary and sufficient condition for thatequation
to be solvableat
all,
and then ourexplaining
how to find the solutionsdoing only
half theexpected
amount of work. It will become clear that our ideas should enable one to make useful remarks about theequation
withgeneral k, including
the somewhat
mysterious K larger
thanVD.
We have
already
alluded to the fact that ifX2-DY2
= -1 thenhalfway
to its solution we find consecutivecomplete
quotients
(~+
and(VD
+ with the factQh
=signalling
halfway.
More-over, the well known
symmetry
of thecycle
of course says that the secondhalf of the
expansion
isexactly
the reverse of the first half.Similarly,
halfway
to a solution ofX 2 -
Dy2
= 1 issignalled by
successivecomplete
We find
analogous signals halfway
to a solution ofX 2 -
DY’ =
-3and prove that the
expansion
up to that solution has twistedsymmetry.
Namely,
its second half isessentially
the reverse of its first halfheavily
disguised by having
beenmultiplied by
3. In any case, wegeneralise
thewell known cases of
halfway
to asolution,
and will allow them to be seenfrom new
standpoints.
2. Notation and
Principles
Throughout
we take D apositive
integer,
not a square. We denote theconjugate
of anelement -y
by
%y .
Thefollowing
remarks are of coursejust
rappels,
anddetailing
orrepeating
them is is done in anattempt
to assist the reader. We write elements
so that
with
integers
P andQ
.. I ’ , , ,
That loses no
generality
tospeak
of because =(ac-vD+ be) Ic2 ,
and of course
c2
divides so we needonly replace
VD
by
and that is tantamount to
dealing
with an element of the orderZ[ac@]
rather than an element of the orderIdeals. The
point
is that onceQ
+P) ,
we may remark thatPROPOSITION 2. The Z -module
(Q, vlD + P),
whichcorresponds
to the element infact
anideal,
thatis,
it is a -module in the orderof
thequadratic
field
Proof.
We needonly
check thatv 1--(VD- D
+P)
is in the ideal. Butwhence
Q
I
+P)
completes
the verification.Similarly,
by
constructing
we associate with
(v75 + P) I Q
aquadratic
form defined over Z. We note that the discriminant of this form is:Working
with ideals of the canonicalshape
(Q,
VD-+ P) ,
or, all the morewith elements or with forms
QX2-2P XY +( (P2-D)IQ)y2,
is much the same
thing.
But it is rather moresparing
notationally
to deal with elements rather thanforms,
and when we work with elements(VD- +
P)/Q,
the role wegive
to the continued fractionalgorithm
is verynatural. Given
that,
we need not have mentioned ideals at all. Wedo,
but inso far as we
mostly
mention idealsonly
in their canonical form(Q,
J5+ P)
ourdoing
so ismostly
an endeavour to makecomposition
within acycle
of forms seem the more natural. Below we abuse
language by speaking
ofcomposing
elements or ideals when of course we meancomposition
of thecorresponding
forms.Periodic Continued Fractions. We may have to be reminded that a
continued fraction is an
expression
of theshape
which one denotes in a
space-saving
flat notationby
Here the ai
(except
perhaps
ao which may be any element ofZ)
should bepositive integers. Nonetheless,
the formulas are formal and do not carry anyexpectation
of the nature of the we use that in what follows. Wewill
repeatedly apply
the fundamentalcorrespondence, easily proved by
induction, whereby:
PROPOSITION 3.
For n = 0, 1, 2,
...if
andonly if
Of course, the ’if’
part
of this claim is to be read as ’for some choice of pnand qn so that = ... one has ... ’.
In the
sequel
thiscorrespondence
will be denotedby
~--~ .PROPOSITION 4. The
general
step n
=0, 1, 2,
... in the continuedtraction
expansion
of
1’0 =(JD
+I’o)/Qo
=[ao ,
a, , ... an,Proof.
The relevant formulaire iseasily
seen to beone verifies
by
induction that thePn
andQn
all are rationalintegers.
Do recall that
throughout
we have the conventionwhereby,
whenever werefer to an element
(d5
+P)/Q,
always Q
I
(D -
P2).
So, above,
ofcourse
D - 0
=aoqo
for someinteger
ao .It is a basic fact:
PROPOSITION 5. ’Pell’s
equation’
has solutions in
integers x
and y, withy 0 0.
The
argument,
see[5],
relies on severalapplications
of the boxprinciple,
working
with elements of(1/Q)Z.
PROPOSITION 6. Given a solution
(x, y) ,
withy 0 0
to Pell’sequation
(2),
eachdecomposition
with
integers
aZ , entails thepure-periodic
continuedfraction
expansion
.Remark. Here we observe that a unimodular matrix has a
decomposition
true.
Naturally,
it cannotdistinguish
between -y
and itsconjugate
77.
Wesee below that our
preference
isalways
for thatconjugate
which satisfies7>0.
The
argument,
detailed in[2]
and[5],
is astraightforward
application
ofthe
correspondence
ofProposition
3,
once one recalls thatWe should understand that the continued fraction
expansion
so obtainedmay not be admissible: in that the ai
might
not bepositive
integers.
Indeedin the most
generally
known case,if q
=VD
then ar = 0 andHowever,
there is aunique
admissibledecomposition
of the unimodularmatrix,
thus withpositive integers ai
(obtained
by applying
the Euclideanalgorithm
to the rows of thematrix),
exactly
when the first row,respectively
the first
column,
dominates the second: thatis,
precisely
if x > y > 0and y
> x -(~y + ~y)y >
0. Theseinequalities
entail that xand y
bepositive
andthat y
is reduced:namely that 7
>1,
whilst 0 >~y
> -1. Thoseinequalities
areprecisely
the well known Galois conditions forpure-periodicity.
There is an
opportunity
for mild confusionengendered by
thefrequently
seensuggestion
thatvID
is reduced. Indeed the ideal(1,
isreduced,
but that is because it
equals
(1,
B/D
+ao) ,
and the elementvID
+ao is
reduced. Idealists may well see this as a
justification
for theirposition;
those not troubled
by
an occasional need for translation will take it in theirstride.
Equivalence.
Two ideals I andJ
in the order are said to beequivalent
if there exist nonzero elementsQ
and q in such that=
(7)~.
It iseasily
checked thatequivalence
is anequivalence
relationon the ideals
compatible
withmultiplication
of ideals. So theequivalence
classes
yield
an abelian group called the class group ofZ [@] .
We will bereminded below that such class groups are of finite order.
Two numbers
Q
and 7
are said to beequivalent
if there is a unimodularinteger
matrix so that(3
=(py
+p’)/(q7
+q’) .
By
decomposing
q q )
the matrix as a
product
ofelementary
row transformations it follows thathave ’the same tail’: that
is,
theexpansions
differ in at mostfinitely
manyinitial
partial
quotients.
It is a
simple
exercise to confirm that thecorrespondence, whereby
anelement
( ~ +
P) /Q
yields
an ideal(Q,
~lD + P) ,
entails thatequivalent
numbers
yield equivalent
ideals.The
import
of our discussion onperiodicity
is that we see that each7 E K is
equivalent
tojust
finitely
many reducedelements,
to wit thecomplete
quotients appearing
in itsperiodic
continued fractionexpansion.
But,
werecall,
(~ +
P)/Q
is reduced if andonly
if~
+ P >Q
and-Q
Thus 0Q
2V"D
and-B/D
PB/D
shows that there arejust
finitely
many reduced elements and a fortiorijust
finitely
many
equivalence
classes of ideals.A reduced element
(VT5 +
P)/Q
yields
a reduced ideal(Q, v75
+P).
One verifies that an ideal is indeed reduced if it contains no nonzero(3
so thatboth 101
Q
and1(3’ 1
Q .
In thislanguage
theperiod
of acontinued fraction
corresponds
to aperiod
ofequivalent
reduced ideals. Of course aperiod yields
acomplete
equivalence
class of reduced ideals. Forif an ideal is reduced it occurs in the
cycle
of reduced ideals to which itis
equivalent,
and if it isequivalent
to some ideal then itcorresponds
toa
complete
quotient occurring
in the continued fractionexpansion
of the elementcorresponding
to that ideal.One says that two
quadratic
formsare
equivalent
if there is a unimodular matrix(q q )
so thattransforms the first form into the second. The forms are
Properly
equiv-alent if the matrix has determinant
+1;
otherwisethey
areimproperly
equivalent.
It isstraightforward
toverify
that the numbers +P)/Q
and are
equivalent
only
if thecorresponding forms,
as citedabove,
areequivalent.
Of courseif,
withGauB,
we restrict ourselves toproper
equivalence
then we may have more properequivalence
classes offorms than we have
equivalence
classes of ideals.is
evidently generated
over Zby
thequantities
Set G =
gcd(Q,
Q’,
P +P’) .
One mayverify,
by studying
the classicalformulas or from first
principles,
that theproduct
is a rationalinteger
multiple, namely G,
of(q,
VD-+p)
where q
=QQ’/G2
and p satisfies thethree congruence conditions p - P
(mod
Q/G) ,
p = P’(mod
Q’/G)
and(P -
p) ~P~ -
p)
= 0(mod
The first
pair
of congruences determines p moduloQQ’IG(Q, Q’) .
The last congruence decides which of theremaining
(Q,
Q’)/G
possibilities
for pmod q
is to be taken.Correspondingly,
theproduct
of thequadratic
formstogether
with a substitutionwith
integer
coefficientA, ...
andA’, ... ,
not allsharing
a commonfactor,
yields
a formqX2 -
2pXY
+~(~2 -
known as acompound
of thegiven
forms. In fact the Grassmann co-ordinates of the substitution matrixC A
are determined(they
areessentially
the six coefficients of(
A B C Dthe
given
forms),
so the substitution is fixed up tomultiplication by
a 2 x 2unimodular
integer
matrix. Note remarks on this matterby
Shanks atp.182
of[7].
Thus thecompound
form is defined up toequivalence
andwe see that
compounding
is well defined onequivalence
classes of forms ofthe same discriminant. We will refer to the
particular
case, where the two stated formsyield
the form ascomposition.
In
particular,
one sees that thecomposite
of a formQ~2 -
2Pxy
+Q’y2
and its
opposite
Qx2
+2Pxy
+Q’y2
isequivalent
to the formcorrespondingly
theproduct
of an ideal(Q,
B/D
+P)
and itsconjugate
is a
principal
ideal.Thus,
it turns out thatQ
I
2P is the condition fora form
Qx2 -
2Pxy
+Q’y2
to beproperly
equivalent
to itsopposite;
the transformation is effectedby y--~ y, x ~--> x +
(2P/Q)y .
In this case theAmbiguity.
Aquadratic
formQx2 -
2Pxy
+((P2 -
is said to beambiguous
if it is bothproperly
andimproperly equivalent
to itself. Thesurprising
equivalence
mustinterchange
the numbers(JD + P) I Q
and itsconjugate
(- vlD- +
P)/Q.
Thus the form isambiguous
if andonly
if the element(~17 +
P)/Q
isequivalent
to itsconjugate.
In an alternative
interpretation
one says that an ideal(Q, JD
+P)
isambiguous
if it isequal
to itsconjugate.
Of course an idealequals
itsconjugate
only
if it contains theconjugate
of each of its elements. Hence(Q,
isambiguous
if andonly
if it contains both and+
P)/Q
and that is so if andonly
ifWe should recall that the basic condition
Hence
2P/Q
E Z entailsA/Q
E Z. Thus theambiguity
of an ideal entailsthat its norm
Q
divides the discriminant 0.Conversely,
if an ideal has asquarefree
normdividing
the discriminant then that ideal isambiguous.
An ideal
(Q,
isambiguous
if andonly
if the continued fractionexpansion
(
has ala2 ...ar-, a
palindrome
and ar =2ao -
2P/Q .
In that senseambiguity
issymmetry;
see
[2].
One says that an
equivalence
class of ideals isambiguous
if it containsboth an ideal and its
conjugate;
hence,
it contains theconjugate
of each ideal in the class.Infrastructure. The literature appears to
speak
interchangeably
ofcom-posing
orcompounding
forms. It is not a bad idea to reserve one of theseterms for the
original
operation
on theequivalence classes,
and the otherfor the
specific
manner ofcomposition
-corresponding neatly
tomulti-plication
of ideals in canonical form - whichwe mention above. Thus we
may say that
compounding
is anoperation
on the ideal or form classes butthat our formulas describe
composition
of forms as such and therefore ofthe
corresponding
elements. Thanks to Shanks[6]
and thence to Lenstra[1]
we now understand that in that waycomposition
operates
meaningfully
within an ideal
cycle.
That is anoperative
principle
in thesequel.
We
barely
need toemphasise
ithere,
because almostthroughout
wewe are active.
Thus,
forexample,
were we to work in the orderZ[8],
with 6 =(B/D+
1)/2,
as wemight
if D were 1(mod
4),
our elements wouldappear as
(8 + P)/Q -
withQ
I
(b + P) (6 + P) -
and thecorresponding
ideals as
(Q, 6
+P) .
That, incidentally,
forces achange
of notation from that of Perron[3],
as is alluded to atProposition
9 below.3. Pairs of Ideals near
Halfway
Suppose
that there is a solution toX2 - Dy2
= -3. We shall showthe existence of
pairs
of ideals(Qh, ý’D
+Ph~
and(3Qh,
B/D 2013
P)
whichcompose to
yield
an ideal(3,
+p) ;
it’s because P -Ph
(mod
Qh)
that this works.However,
thepoint
is that the element(v’D + Ph)IQh
isreduced and that in an easy to understand sense the ideal
(3Qh, VD- -
P)
is ’near’ it.
Then,
given
that(3,
v’D
+p)
need not be a square, the ideals(Qh,
v’D + Ph)
arepretty
well as close as we canget
to its square root andin that sense lie
halfway
to it.Indeed,
as one mayverify
experimentally,
theideals
(Qh, B/D
+Ph)
we find below -if
they
lie in theprincipal cycle
-do lieroughly halfway along
thecycle
to an ideal(3,
D-
p) .
Of course the fact of a solution to
X2 -
Dy2
= -3 entails the existenceof an ideal
(3,
d5
+p)
in theprincipal cycle.
More thanthat,
because of the minussign
its immediate’neighbours’
- inthe sense of the continued
fraction
expansion
orequivalently
the idealcycle,
lie in theprincipal
genusand thus have square roots
lying
inambiguous cycles.
It will become clear that the ideal(3,
B/D
+p)
hasappropriate
neighbours
with normQ~ .
We lose no
generality
insupposing
that D issquarefree,
and supposethat from hereon. We may then remark that if
Dy2
= -3 has asolution then
certainly
eachprime
factor of Dsplits
in~(~) .
Thus,
as is
easily
checkedby quadratic
reciprocity,
theonly possible
factors ofD are 3 and
primes
congruent
to 1 modulo 3.Hence, recalling
that the maximal order of~(~)
has basisgenerated by
1 and(1
+H)/2
itfollows that D has
representations
To be
precise,
if D has v differentprime
factorscongruent
to 1 modulo 3 then there are2v-1
essentially
different suchrepresentations
-
disregard-ing
interchange
of M andN ,
changes
ofsign,
and - in thisspecial
case- other actions
by
roots ofunity.
We can
guarantee
theparity
ofN ;
thatis,
we may arrange N to be oddwe may
interchange
M and N. If both areodd,
then M + N is even inD =
(-M)2 -
M(M
+N)
+(M
+N)2.
Here too we mayinterchange
Mand N if we wish.
Nonetheless,
the cases N odd and N even are ratherdifferent and need
separate
treatment.Below we will
prefer
N odd.Suppose,
however that N =2Q
is even-of course then M is odd. Then we have an
equivalent
representation
Conversely
D= A2
+3B2
entails D =(A -
B)2
+(A - B) ~
2B +(2B)2 .
Again disregarding
signs,
there are2’-’
distinct suchrepresentations.
Out of contrariness we start with the even case.
Suppose
then thatD has a
representation
D =L2
+3Q2
with L andQh
positive.
Thenit is easy to check that either the element +
L)/Qh
or the element(VD- + L + Qh)lQh
is reduced. We setPh = L + gQh with g = 0
or 1 sothat is reduced. Because
Ph-L -
0(mod Qh)
theproduct
of the ideals(3Qh, ~-L)
and(Qh,.JÐ+Ph)
is withsome P - -L
(mod 3Q~ ) .
Now,
consider theproduct
of(Qh,
B/D+
Ph)
and +
P) .
It isQh (3,
JD
+p)
with some p - P(mod 3)
because
Ph
+ P = 0(mod Qh) .
Hence,
indeed,
we have found apair
ofideals and
(3Qh,
@ + P)
which compose toyield
an ideal(3,~D+p).
Since the
reciprocal
of(J5 - L)/3Qh
is.JÐ
+ L which is a neutralelement for
composition,
and since we obtained the ideal +P)
from
(Qh,
by
composing
with(3Q2,
the sense in whichthe ideals
(3Q~,, ~ + P)
and(Q~,, ~ +
Ph)
are ’near’ to one another ismanifest.
Moreover,
for later use we remark thatplainly, being equivalent
to a
principal
ideal,
the ideal(3Q2,
JD -
L)
isprincipal.
Finally,
we remark that on the one handPh) =
and on the other hand
Ph -
D =Ph2 -
((Ph -
+3Q~).
HenceWe will refer to an event
3Qh
=Qh-1
or4Qh
=Qh- 1
+2Ph
as asignals
-namely
asignal
that we may behalfway
to a solution ofX2 - Dy2
= -3.Before
summarising
we had best deal with the cases L orQh negative.
In so far as we are
dealing
with ideals achange
insign
ofQh
is irrelevant -so we assumethroughout
thatyh
> 0 . On the other hand(Qh,
continued fraction formulas reminds us that the reduced element
conjugate
to is Our
argument
above shouldchange
to start with the ideal(3Qh,
Vi5
+L) .
It ismultiplied by
(3Qh,
v75 - L)
as
above,
wemight
just
as well say’composed
with’,
yielding
an ideal(Qn,,
~ + P~,+1 ) .
Thatproduct
is thencomposed
with(3Qh,
v75 + L)
toyield
an ideal(3,
~D + ~~ .
We will have setPh+,
=L + gQ
with g
= 0 or1. Now we conclude with the remarks that
once
again
with 9
= 0 or 1. These then are theconjugate
signals.
PROPOSITION 7. Each
representation
D =L2
+3Q2h
withQh
> 0yields
a pair
of reduced
elementsand,
insome
ambiguous cycle,
one or otherof
aconjugate
pair
of signals
Remark. We say
only
that, given
therepresentation,
we find one or otherof the
pairs
ofconjugate signals
in someambiguous cycle
of the orderOf course we can find them in the continued fraction
expansion
of@ itself,
thus in theprincipal cycle, only
if = -3 has a solutionin
integers
(X, Y) .
Our ultimate purpose, hence the Theoremsbelow,
is inter alia to show that the appearance of such asignal
is necessary as well as sufficient. Thus we hasten toemphasise
that theProposition
does notrely
on therebeing
a solution toX2 - Dy2
= -3. We useonly
the factof the
representation
of D and deduce from it that there then is an ideal(3,
B/D+p) 2013
namely
that there is a rationalinteger
p so that 3I D - p2 .
We now turn to the
representations
D =M2+MQh+Qh
stillsupposing
that
Q~,
> 0. Moreover we shall also suppose thatQh
isodd,
as we maywithout loss of
generality.
If M > 0 it is easy toverify
that the element(B/D
+M)/Qh
is reduced. Inanalogy
with theforegoing
case we proposeto compose the ideal
(Qh, v’Ï5
+M)
with anappropriate
ideal of norm3Q~,
indeed with the ideal(3Q2,
v’Ï5 -
M+ 2 (3Qh -
1)Qh) .
By
the way, we have notpulled
this idealquite
out of thin air. We notedthat 4D -
(2M
+Qh)2
=3Q2
and then with some mild effort rewrote thethroughout.
In any case, as before we obtain an ideal(3Qh,
P) .
Wecould have deduced that with less
turgid
detail since theonly
point
is thatM - 2 (3Qh -
1)Qh -
M(mod Qh) .
Hence P == -M(mod 3Qh) .
Nowcomposing
the ideals(Qh,
JD
+M)
and(3Qh,
JD
+P)
yields
an ideal(3,
J5
+ p)
just
as above. We set M =Ph .
Of course D -Ph
=and D -
Ph
=Phoh
+Q~
so we obtainQh- i
=Qh
+Ph,
an attractivesignal
indeed.In the
conjugate
case we start with the ideal(3Qh,
M -Qh) .
The firstcomposition
as aboveyields
an ideal(Qh,
Ph+i)
corresponding
to a reduced element
( ~ +
and when it iscomposed
with(3Qh,
VD
+ M -Qh )
we onceagain
obtain an ideal(3,
JD
+p) .
All thisis tantamount to our
setting
M = andyields
thesignal
Qh+l
=~’
PROPOSITION 8. Each
representation
D =M2
+MQh
+Q~
withQh
> 0and odd
yields
reduced elements and anda
conjugate pair
of signals
Once
again,
this means thatgiven
therepresentation
wefind,
in someambiguous cycle
of the order thepair
ofconjugate
signals
-to
wit,
neighbouring
P’s andQ’s satisfying
the cited relations.We will notice below that when =
Qh
+ Ph
then =Qh
andQh-2
=Ph . Hence,
automatically, Qh-1
=Ph-1
+Qh-2 ,
which is theconjugate signal slightly displaced.
Thus itactually
suffices toemphasise
only
one of thepresent
pair
ofsignals.
We reiterate that theProposition
does not
rely
on therebeing
a solution to = -3. We useonly
thefact of the
representation
of D . Our purpose inalluding
to a solution at all was to be able to say that a solution isequivalent
to the presence of an ideal(3,
JI5
+p)
in theprincipal cycle.
However we have therepresentations
as soon as 3I
D -p2
and that last is silent as to the class of the ideal(3,~ + ~).
4.
Halfway Along
the Continued FractionExpansion
In this section we suppose that the
halfway
ideal(Qh, JI5
+Ph) ,
and therefore also itsconjugate,
lies in theprincipal cycle.
We setand denote the
convergents
variously by
or We writeIt will be useful to set
So
Mn J
issymmetric,
and sincewe have
-with the eccentric notation
Nn
for thetranspose
ofNn
congenially
remin-ding
us that it isHere we have said
nothing startling
other thanperhaps
for ourallegation
that
PROPOSITION 9.
This remark is central and warrants an extended
explanation.
Explanation.
We commenceby observing
that’multiplication by x -
.JÏ5y’
is a
Q-linear
map of theQ-vector
space into itself. Withrespect
to the basis{2013B/D,
11
its matrix isThus M has determinant =
x2-Dy2
and inparticular
Mn
has determinant =
compatible
with ourallegation.
More to the
point,
weapply
thecorrespondence
ofProposition
3 betweenmatrices and continued fractions after first
noticing
thatThen
explaining
that the constants and do indeed define the nextcomplete quotient
exactly
as our notation hadsuggested.
It therefore seems
appropriate
to consider theMn
to define the sequencesand
(Q~,) ,
via the statement of theproposition.
Were weworking
inan order different from
Z[B/D]
this would force achange
of notation fromthat of Perron
[3].
In any case, with that cleared up, we next remark that the
product
ofany two matrices of the
shape
M isagain
of thatshape.
That isThat’s
plain
withoutcomputation
onremarking
thatWe shall
interpret
our idea forfinding
thehalfway
point
to a solution ofX2 - Dy2
= -3 in terms of the observation thatmultiplication
of matricesM
corresponds
tocomposing
thecorresponding forms,
as isclear,
of course,in the
light
of the remarkjust
made.Accordingly
we are now in aposition
Representations
D =M2+MN+N 2with
N odd. It seems convenientto suppress
subscripts
aslong
aspracticable.
Ourargument
runs as follows.Suppose Q
odd. Therepresentation
D =p2
+PQ
+Q2
yields
the ideal(Q, B/D
-f-P)
and itcorresponds
to,
say,Expanding
V75
wemayl
writecorresponds explicitly
to thematrix
The
conjugate
of the idealcorresponds
to theadjoint
of thematrix2.
Hence the firstcomposition
yields
the matrixproduct
the last line after a little work. We
recognise
the intermediate matrices asreciprocals
and may thereforeinterpret
theproduct
astelling
us of thefollowing configuration
in theexpansion:
1
"No, you may not", we hear you say.
"P+ ~(Q -1)
is not the integer part ofVT3".
To that one of us replies "Up a gumtree" (an Antipodean response to nonsense). Our
assertion is an identity showing that a certain ideal is principal. The fact that it is not
the usual continued fraction expansion of
VD
is quite irrelevant.2 Strictly
speaking, it corresponds to the inverse, but since the correspondence with continued fractions disregards multiplication by nonzero constants we effectively obtainMore
compactly
Of course we have recalled that .
Whatever,
we may now compose the ideal(3Q,
vT5
+Q -
P)
with(Q,
VD
+P) .
Here onemight
notice,
the absurd way isby
the use offalse
transposition3,
that alsoWe obtain
corresponding
to some ideal(3,
VD
+p) .
The first matrixcorresponds
to the continued fractionand since it is well
known,
andeasily
seenby
the matrixcorrespondence,
that
the second matrix
corresponds
to thatexpansion
’multiplied symmetrically’
by
3,
to wit to the continued fraction of3That is, transposition in the wrong diagonal. This should not be confused with "students’ transposition" where one over-enthusiastically transposes in both diagonals. Mind you, the students have a point. The "double transpose" of a product of 2 x 2
matrices is the product of the double transposes. There is none of this nonsense of
Of course the matrix
I - _
,
expands
as aproduct
of matrices of theshape
I -B I
’
-’- , -’- ,
-The
decomposition
is tantamount toperforming
the euclideanalgorithm
on the rows of the 2 x 2 matrix. That is
plain given
that the continuedfraction
expansion
of a rational iseffectively
the euclideanalgorithm
on itsnumerator and denominator. We
give
numerical details in ourexamples
below. In
particular,
above,
- y
To ensure that we have
expressed
matterscorrectly
we had better confirmthat all the entries
2y’ -
y , 2x -x’ ,
... , arepositive.
We note that is so ifand
only
if thepartial
quotient
= 1.Fortunately, always Qh
=and so ah-1 =
1,
because the element(VT)+
Qh)/(Qh
+Ph)
is reducedwhen D =
Ph
+ +Qh .
THEOREM I.
Let x2 -
Dy2
= and suppose thatQh-1
=Qh
+Ph
in the
principale cycle.
ThenX2 -
Dy2
=-3,
whereMoreover the continued
fraction
expansion
of
XIY
is twistedsymmetric.
Itsfirst half
is theexpansion
of
xly,
say[ao,
w~ ,
and its secondpart
isthe
expansion
of
(2(u ~ -
1)/(2 -
~w~)
- thus the reverseof
thatfirst
half ,
omitting
the zero-thpartial
quotient,
twistedby multiplication by
atransformation of
determinant 3.Proof. Having
beensignalled by Qh-1
=Qh
+-Ph
we haveand thus the
representation
D =Ph
+PhQh
+Q2.
But then we have seenexplicitly
thatyielding
the claims.We will not need the
conjugate
case; see however the discussion belowAn
example.
One can see that1228312 - 1729 . 29542
= -3 after a briefcomputation.
Indetail,
Here
Q7
= 48 = 23 + 25 =Q8
+P8.
Incidentally,
a7 = 1 whence
P7
=Q8
as in the continued fraction
configuration
we mentioned above. That’sclear of course because an element
(JD
+Q)/(Q
+P)
is reduced if D =p2
+PQ
+Q .
We read off thatWe
purport
that the continued fractionexpansion
[41 , 1 , 1 , 2 , 1 , 1 , 2 , 1~
continues with the
expansion
corresponding
toNote that all entries in the
product
arepositive
exactly
because a7 = 1.Indeed,
theproduct
expands
toyield
that is
55/19
=[2,1,8,1,1]
and2287/790
=(2 , 1 , 8 , 1 , 1 , 40/3~ ,
precisely
aspredicted4.
We should also confirm that
and
Representations
D =M2+MN+
N2
with N even. We now return torepresentations
D= M2 + MN + N2
with N even.Appropriately
expanding
VD
we obtainimmediately yielding
the ideal( 4 N2, ~lD
+ M+ 2 N) .
Accordingly
weset N =
2Q
and L = M +Q
and note that one or other of the elements or( fD+L+Q)/Q
is reduced. Asbefore
we write P =L+gQ
with g
= 0 or 1. The firstcomposition
corresponds
toIf g
= 0 thisjust
reports
thatQh-1
=3Qh,
in the proper continuedfraction
expansion.
Of course we have recalled that D =(Ph - gQh) 2+ 3Q2
and
(3
+g2)Qh
=Qh-1
+2gPh .
Now,
the secondcomposition
with the ideal(Q,
v75
+P)
corresponds
to
Firstly
supposethat g
= 1. Then the first two matricescorrespond
to thecontinued fraction
whence the last two matrices
correspond
to theexpansion
Thus the continued fraction
expansion
ofX/Y,
whereX2 - Dy2
=-3,
is twisted
symmetric
with thesymmetry
twisted in that the second half of theexpansion
is the reverse of the first half -omitting
the zero-thpartial
quotient,
and is dividedby
3.If g
= 0 weagain
have twistedsymmetry.
The first half of theexpansion
is~ao , w]
and the second halfis the continued fraction
expansion
of the rational[+W-
]
multiplied by
3.THEOREM II.
Suppose
that either g = 0 org = 1 and
(3
+Qh-1
+2gPh
in theprincipale cycle,
and x2 -
Dy2
= ThenX2 - DY2 = -3,
whereMoreover the continued
fraction
expansion
of
XIY
is twistedsymmetric.
Itsfirst half
is theexpansion
of
x/y
with gappended
and its secondhalf
is the reverse
of
thatfirst half
-omitting
the zero-thpartial
quotient,
andthe
expansion
of
xly
and its secondhalf
is the reverseof
thatfirst half
-omitting
the zero-thpartial
quotient,
and is twistedby multiplication by
3.]
Proof. Having
beensignalled by
(3
+g2)Qh
=Qh-1
+2gPh
we haveand thus the
representation
But then we have seenexplicitly
thatyielding
the claims.Another
example.
It is easy to see that34798636~ -1891’ 800233~
= -3where
4Q6
= 4 . 25 = 58+2.21 =Q5 + 2P6,
and alsoQ12
= 49 =15 + 34 =
Q13
+P13.
We should also notice that ithappens
tohappen
that4Q6=4~25=42+2~29=Q7+2P7.
We have thatOur
arguments
pretend
to show that theexpansion
[43 ,
2 , 16 ,
1 ,
8 ,
1]
continues with the
partial
quotient
1 and then with thepartial quotients
corresponding
toAccording
to ourdescription
we should haveThis is indeed the case. The
displayed
detail of thisdecomposition
isand
The continued fraction
expansion
following
thesignal Q12
= 49 = 15+34 =Q13
+P13
shouldcorrespond
toIndeed,
in accordance with
prediction
andshowing
that thepresent
identity signals
the other solution toX2 _ 189ly2 -
-3. Indeed our firstsignal
arosefrom the
representation
1891 =4 2+3.25 2
=212 - 21.50 + 502
whilst thissecond
signal
arises from therepresentation
1891 =342
+ 34 . 15 + 152.
Itis not
unamusing
tocompound
these tworepresentations obtaining
bothD2
=2792 -
279 ~ 2015 +20152
andD 2
=14642 -
1464 . 2135 +21352 .
It follows that 1891 = 31 .61. That’s clear because the
greatest
commondivisor of 279 and 2015 is
31,
y and thegreatest
common divisor of 1464and 2135 is 61.
The
signal 4Q6
=Q7
+2P7
is in factconjugate
to asignal happening
to coincide in
position
with thesignal
conjugate
to4Q6
=Q5
+2P6 .
Weshall see in the next section that it of course leads
naturally
to the firstsolution,
by exactly
computations
already provided.
The
conjugate
cases. We now deal with the formulasappropriate
to theconjugate
cases. To obtain these cases we consider the ideal(3Qh,
v75+L)
composed sequentially
with(3Qh, ~ - L)
and then with(3Qh,
L) .
Thecompositions
correspond sequentially
to a matrixproduct
The last
pair
of matrices may be’simplified’
toyield
Setting
L =gQh,
these matrices detailrespectively
thefollowing
equivalent
configurations
in a notional continued fractionexpansion:
, ,,--- L n v · . , --,-" ---..
,
-expansion
just
reports
thatQh+l = 3Qh .
Of course we have recalled that- - - .. 1""1. - --1’"B - n...- -- _ -.
The second
composition
nowyields
corresponding
to some ideal(3,
B/D
+p) .
Moreover,
the continuedfraction expansion of
XIY
is twistedsymmetric.
Its
first
half
is theexpansion
of
xly
and its secondhalf
is the reverseof
thatfirst half
-omitting
the zero-thpartial
quotient,
and is twistedby
divisionby
3.Proof.
We have seenexplicitly
thatyielding
the claims.This is all very well if
x/y
is aconvergent,
but it is not if 9 = 1.However,
above,
we saw the continued fractionconfiguration
so
Hence we have the alternative
Moreover,
the continuedfraction
expansion
of
XIY
is twistedsymmetric.
Itsfirst half
is theexpansion
of
followed by
thepartial
quotient
g and its second
half
is the reverseof
thatfirst half
-omitting
the zero-thpartial
quotient,
and is twistedby
divisionby
3.Moreover,
the continuedfraction
expansion
of
XIY
is twistedsymmetric.
Itsfirst half
is theexpansion
of
xhlYh
and its secondhalf
is the reverseof
that
first half
-omitting
the zero-thpartial
quotient,
and is twistedby
the linearfractional transformation
(3:2 7 ) .
(
-g 1
Yet a further
example.
It’s clear that13522342 -
5719178812
= -3and
5453976942 -
5719 .72119592
= -3. Herewhere
Q7
= 27 = 3 - 9 =3Q6
andQ9
= 75 = 3 . 25= 3Qio .
Thesesignals belong respectively
to therepresentations
5719 =74 2+3 _ 92
=652
+ 65 .18 + 18~
and 5719 =622
+ 3.252
=372
+ 37.50 +502 .
One notesthat
Q13 = Q17 = 3.
This and the next
example
have been ’concised’ on the advice of thereferee. The reader can
readily
compute
the relevant table[a
spreadsheet
program is
optimal].
The first
signal
is aconjugate
case. We have thatOur
arguments
suggest
that theexpansion
[75 ,
1 , 1 , 1 , 1 , 1 ,
16]
contin-ues with the
partial quotients
corresponding
toThis is indeed the case. We also note
that,
again
assuggested,
In
respect
of the secondsignal
we have thatOur claim is that the
expansion
~75 ,
1 , 1 , 1 , 1 , 1 , 16 , 5 , 1 ,
1]
continues with thepartial
quotients
corresponding
toWe also note
that just
assuggested,
And
yet
anotherexample.
It takes oneonly
a few moments to confirm that1699118998912 -
913917773561342
= -3 and thatsimilarly
we have541447255636762 -
9139 -5663785771692
= -3. HereOne may see the
signal 4Q16
= 4.49 = 10 + 2 - 93 =Q17
+2Pl7
arising
from the
representation
D =442
+ 3 .492
=52 -
5 ~ 98 +982 .
There isalso
Q13
= 107 = 30 + 77 =Q14
+P14
arising
from therepresentation
D =
302 + 30 . 77 + 772 .
will have the
partial quotient
2 = 3 - 1appended.
In matrix terms thatyields
Now
dividing
the reversed continued fractionby
3supplies
the matrixIt will be more instructive to
display
the sequence of calculationsproviding
thedecomposition
of thismatrix,
rather than toallege
the result. One hasin detail
Recall that the first two columns are the sequence of 2 x 2 matrices obtained
as we
split
off eachpartial
quotient
matrixby employing
the euclideanalgorithm
on the rows of the matrices. nowproperly
seen to bethe
quotients
of that euclideanalgorithm,
aredisplayed
in the third column.The last 2 x 2 matrix
displays
P25
= p = 95and,
of course,Q25
= 3.Evidently
all iswell,
with truthprevailing.
We werehalfway
to theverifying
our formulas.According
to thesignal
( the continuedfraction
expansion
continues with the
expansion
corresponding
toI I I
The
decomposition
details areU is
precisely
aspredicted.
The last 2 x 2 matrixdisplays
P23 =
p = 94and,
of course,
Q23
= 3.We also confirm that
5.
Signals
inArbitrary Cycles
Our
preceding
discussion shows that if there is a solution to = -3then D has
representations
D =M2
+MN+N 2
and there aresignals
That
is,
there are reduced elements(~lD +
Ph)lQh,
or +yielding
thesignal,
withQh
= N or2Qh
= Naccording
as N is odd oreven,
occurring
in some continued fractioncycle.
A
priori,
signals
may occur in anycycle
whatsoever. Ourarguments
only
entail that if a
signal
occurs in some idealclass,
orcycle
- thus if there isa
reduced element
corresponding
to an ideal(Q h ,
inthat
cycle, respectively
a reduced elementcorresponding
to an ideal
(Qh,
B/D
+Ph+1)
in thatcycle
if we arereferring
to aconju-gate
signal
from the second line in the list above -then there is an ideal
(3,
B/D
+p)
in the ideal class that is the square of thesignalling
class.However,
if there is a solution toX 2 - Dy2
= -3then,
inparticular,
the ideal
(3,
B/D
+p)
must lie in theprincipal
class.Hence,
if there is asolution,
thesignals
must occur inambiguous classes,
for those areprecisely
the classes whose square is
principal.
Conversely,
if there is asignal
in someambiguous
class then there is aprincipal
ideal(3,
thence a solutionto
X2 -
Dy2
=-3,
and allsignals
must occur inambiguous
classes.We shall address the
question
whether there aresignals
in theprincipal
class, given
that there is a solution toX2 - Dy2
= -3. We alsobriefly
explain
how asignal
in anarbitrary
cycle containing
anambiguous
idealpermits
one to construct a solution toDy2 -
-3.Counting ambiguous
classes andrepresentations.
We will bedealing
withsquarefree
D divisibleby
primes
congruent
to 1(mod 3),
andpossibly
by
3. If D is divisibleby exactly v
differentprimes
congruent
to 1(mod 3)
then there are
exactly
2"ambiguous
ideals,
respectively
2"+1
ambiguous
ideals,
in the orderZ[~/D] 2013
according
as3~
D or 3I
D. Half of theseambiguous
ideals have odd norm Sdividing
D and half have even norm2S
dividing
2D. These matters are wellknown;
there is a fresh discussionin
[2].
We have to
distinguish
the cases D - 1(mod 4)
and D - -1(mod 4).
In the latter case we have