Bill Allombert on Thu, 16 Nov 2023 23:28:32 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Question on ternary quadratic form
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Question on ternary quadratic form
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 16 Nov 2023 23:28:20 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1700173707; c=relaxed/relaxed; bh=OLU1/VgAT6YiyKUaBBuhyhuhW+PHlMMisvxtScNWeMc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=3Y91+MlpcNnzNCGwSWnVHJjLa1pYdGss5IC7lsT9PfZ7QVL9bXnT3hevauubj23vuHZYZyfyHMwfsyqdogj+bRS6j3GbSEJ706C5SIvkPUzhcokwWl4DnZKchIVkq8mVfJIxGId3DH1EfTrkgzJmF1hal+GXmg5lMhpoNYUCJWJGo91tN6XYlME4kVyQ+RqiEyLwfATFWbKKliEyt/OC5HPwShjDO4Uwqvk0azh6gy+aogsUP4rvPkKDlieLG9ycvTIXcbeJ70nXvYSIb1E2lOpjEHprkcfSFtGF/YJlEsjzZnHIRnWE5LS7RNIlGAi/8OtvVNav7gpu5xFIUIdm3FIrywkPHMW3dBRIh73xSu2lRQdk+oXihpCfD5JzyWONUExKL2jDk1uFK6s1begHQ9H/vh4wrGghT7NepgUUWI3lsK5OUVn3P/MQUuj9nnf5xwhpgvIfRxwj+PRw2I6ZgjnzV37ftOwu2yN4lDyyQae8Tr/T542mCLUdn24INRzut3PL3FSR2NOVTWetkBhMLGzcr0Vpt46eSjQnXHgqxpVkd4IU4vRQIetn1eSQ66GAdeUe5/q++EsIy9zwMCQuuJGC7A7Tbh2YIlPRVpskVtaY3ozuf20Q84F2wFG2WoR9bCM5bNAzxXobcTVFIZZgghcWua8v1Z9iN0iXhXU/vFA=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1700173707; cv=none; b=yBGyPvmmVfY8ND7LNQx1Ws/QR96+BHn4880kwhjMmdC3LsIXCsUJ1tsJ/Hwp9t0UoglUm79Tq5WX7W9or61JY1SjvJcJDBr6X2SkZBqxk/umvR/+glmWaW4P1YwsTHvEOa1JYofnlmPRSqYy9oE2QBx9T9zLRBP/rsJcVwpoWV/UkgYqKhWFO2zcQRngKquYw950XokHza5I7Xi2JqAy3/u4fDCPA+sCbT07QQbpebR7i/60F7k6OSJ+f2cBY1yN0YsBeqJ/iqescR0UiZVDpbTMscjEKzMiaQiAbxboKkIUlKCTcmxoaE+I/qerhhdW25wbisHQQ5HA6htEI/fWlHt3IiBiUNDFle/+/79sDRFBtx4kk+lanitmXK3eC5uNwL3QmgJwsVrXl4qfxreLnh03QVcD+tnTl0WK6KldvZphK/fP8nhxj4DKVna0WGOjPRZCsEbRN/zdZKZ881UNL8iC2CxoY3bpnHW5nIceUGFdVjg2yy+otOJDVqk7PekhbxcN+iwexJ/eeaOO07xnoJ6NRw3zDyz2D4jz7nhP1CvmTJlDZGjoz4Zux6gXnCVmVjYvauI9SunSybkc/oLJMd5HR2Ojy81dAqE9sPUWY3UwwnljI7qFROWxif+diurZh5H5O1ftINhrRdBRF6XJJb+y6N/KWpG974X4G8VRBfI=
- Authentication-results: smail; arc=none
- Delivery-date: Thu, 16 Nov 2023 23:28:32 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1700173707; bh=OLU1/VgAT6YiyKUaBBuhyhuhW+PHlMMisvxtScNWeMc=; h=Date:From:To:Subject:References:In-Reply-To:From; b=U3D6een02gv6DRwxUwuf17Ytc2C/oTPX+qTGahU3KlCFFKihusql5LQtL2iRdfdEy xeI9+w7dPgKXH89jcQq7Ox7BYr8tlHj4F+H/1jyEOH3D9nJcrwaLEF1qvpREtUccRk jEOyYtou1owxoLSdpR7VMT3ZgC2AVU/a9LIihg+QAfBOOJf0chqAmYPMhm+XcPcViO vTuXaqHqx6OgpmyWtdF9QE09qJh0U+sFBrbb6JPHGEUiv/p5/lyPqXIu5bSUGOkDwD wze/e+CeyEpO1gfE/n2zE4kIMIoeoTwijHrBWI+pBPRayiBW+x9vxlwzWrFAKKJAfc aRIf1BieFqV+F4kVwkGVlaZZN/qZcGdPghxWcYuyE8u/J6G7iriwwVHlxp2nQYKaaH VxbEZ2UtCsOH7HQop6BrikfKXXjRztbTByvbuuR6vPEoghHq87FW1DVIQ9O4igGEPb T/BocIE4Dh/Nh6WASYdoHobIwq7XS4iGLp+8OM0bxL78nNVsA0plClmIiCjtNkcmU5 P77p2Ujh3wLSb6WKaxwoKtUMCDqinCb4/l9pXhF1P3TKFKDQHra/F8HswUv097e4uz 5eN3rutIq23rdEgi7DAUCirxUqvzLwTh0SJUb8nlBRaBj0mBieADOj2t1WdHnCbHSQ JPlPlrjGcw/fjmqR0TVOFgHE=
- In-reply-to: <65ce5e1b-fab3-4d8a-8368-8abde136e09f@gmail.com>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <9bbdc86703960aaf2b5421cbf58e6b65@stamm-wilbrandt.de> <ZVU/h32MjkgyvAxy@seventeen> <227165512.13938215.1700086511058.JavaMail.zimbra@unicaen.fr> <cccc32f28119588661428adad7173787@stamm-wilbrandt.de> <65ce5e1b-fab3-4d8a-8368-8abde136e09f@gmail.com>
On Thu, Nov 16, 2023 at 01:54:50PM -0800, American Citizen wrote:
> Hermann:
>
> I might be interested in your code. In the past from Bill, I got for 2
> squares for N
>
> > {sqs2(N)=
> > local(L,i,R);
> > L=abs(qfbsolve(Qfb(1,0,1),N,3));
> > for(i=1,matsize(L)[2],L[i]=vecsort(L[i],,4));
> > R=Set(L);
> > return(R);
> > }
> but then for 3 squares, I created a loop from 1 to sqrt(N) and subtracted
> the square of that loop value from N and checked for a solution for 2
> squares.
>
> would your method be quicker?
If you want all the solutions, no, there are too many of them.
If you need only one solution, you can use my script
<https://pari.math.u-bordeaux.fr/Scripts/foursquares.gp>
Cheers,
Bill.