load "Markoff-Rosenberger_AP-K.mg"; load "Markoff-Rosenberger_AP-Z.mg"; D1:={-D : D in [1..400] | IsSquarefree(D) and (-D mod 4) eq 1}; // #D1 = 82 Dno1:={-D : D in [1..100] | IsSquarefree(D) and (-D mod 4) ne 1}; // #D3 = 20 a:=1; b:=1; c:=1; DD:=D1 join Dno1; for D in Sort(Setseq(DD)) do LD:={}; printf "====== %o ======\n",D; K:=NumberField(Polynomial([-D,0,1])); A1,A2:=Step4(K,1,1,1); for k1 in A1 do for k2 in A2 do boo,L6:=Step6(k1,k2,K,1,1,1); if boo then for us in L6 do u1:=us[1]; u2:=us[2]; z:=((a+c+k1*u1)*((a+c)*(b+4*c)+4*c*k1*u1+k1^2*u1^2))/(u1*u2*k1*k2); if IsIntegral(Norm(z)) then if z eq 0 then LD:=LD join {1,3}; else sss,R2:=SquarefreeFactorization(Integers()!Norm(z)); LD:=LD join Seqset(Divisors(R2)); end if; end if; end for; end if; end for; end for; for R in LD do AP:=MarkoffRosenberger_AP(a,b,c,R,K); APZ:=MarkoffRosenberger_AP_Z(a,b,c,R); if #AP ne #APZ then printf "%o -- %o --> %o \n",R,D,AP; end if; end for; end for; /* OUTPUT luna:cuentas enrique$ magma proof_theorem_quad_imaginary.txt Magma V2.18-3 Fri Feb 24 2012 11:45:01 on luna [Seed = 2173281529] Type ? for help. Type -D to quit. Loading file "proof_theorem_quad_imaginary.txt" Loading "Markoff-Rosenberger triplets in arithmetic progression-K.mg" Loading "Markoff-Rosenberger triplets in arithmetic progression-Z.mg" ====== -399 ====== ====== -395 ====== ====== -391 ====== ====== -383 ====== ====== -379 ====== ====== -371 ====== ====== -367 ====== ====== -359 ====== ====== -355 ====== ====== -347 ====== ====== -339 ====== ====== -335 ====== ====== -331 ====== ====== -327 ====== ====== -323 ====== ====== -319 ====== ====== -311 ====== ====== -307 ====== ====== -303 ====== ====== -299 ====== ====== -295 ====== ====== -291 ====== ====== -287 ====== ====== -283 ====== ====== -271 ====== ====== -267 ====== ====== -263 ====== ====== -259 ====== ====== -255 ====== ====== -251 ====== ====== -247 ====== ====== -239 ====== ====== -235 ====== ====== -231 ====== ====== -227 ====== ====== -223 ====== ====== -219 ====== ====== -215 ====== ====== -211 ====== ====== -203 ====== ====== -199 ====== ====== -195 ====== ====== -191 ====== ====== -187 ====== ====== -183 ====== ====== -179 ====== ====== -167 ====== ====== -163 ====== ====== -159 ====== ====== -155 ====== ====== -151 ====== ====== -143 ====== ====== -139 ====== ====== -131 ====== ====== -127 ====== ====== -123 ====== ====== -119 ====== ====== -115 ====== ====== -111 ====== ====== -107 ====== ====== -103 ====== ====== -97 ====== ====== -95 ====== ====== -94 ====== ====== -93 ====== ====== -91 ====== ====== -89 ====== ====== -87 ====== ====== -86 ====== ====== -85 ====== ====== -83 ====== ====== -82 ====== ====== -79 ====== ====== -78 ====== ====== -77 ====== ====== -74 ====== ====== -73 ====== ====== -71 ====== ====== -70 ====== ====== -69 ====== ====== -67 ====== ====== -66 ====== ====== -65 ====== ====== -62 ====== ====== -61 ====== ====== -59 ====== ====== -58 ====== ====== -57 ====== ====== -55 ====== ====== -53 ====== ====== -51 ====== ====== -47 ====== ====== -46 ====== ====== -43 ====== ====== -42 ====== ====== -41 ====== ====== -39 ====== ====== -38 ====== ====== -37 ====== ====== -35 ====== ====== -34 ====== ====== -33 ====== ====== -31 ====== ====== -30 ====== ====== -29 ====== ====== -26 ====== ====== -23 ====== ====== -22 ====== ====== -21 ====== ====== -19 ====== ====== -17 ====== ====== -15 ====== ====== -14 ====== ====== -13 ====== ====== -11 ====== ====== -10 ====== ====== -7 ====== ====== -6 ====== ====== -5 ====== ====== -3 ====== ====== -2 ====== ====== -1 ====== 1 -- -1 --> <<-K.1 + 2, K.1>, <2, 2*K.1>, , <-4*K.1 + 2, 2*K.1>, <2*K.1 - 1, -2*K.1>, <4*K.1 + 2, -2*K.1>, <3, -9>, <-2*K.1 - 1, 2*K.1>, <0, 0>, <-K.1 + 2, -K.1 - 3>, <3, 0>, <-15, 9>, , <2, -2*K.1>, <3*K.1 - 4, -K.1 + 3>, <-3*K.1 - 4, K.1 + 3>> 2 -- -1 --> <<2*K.1 + 1, -K.1>, <-2*K.1 + 1, K.1>, <1, -K.1>, <1, K.1>, <0, 0>> > */