![]() |
![]() |
#1 |
Jul 2015
2 Posts |
![]()
Hi people,
I am wondering about the following: Is anything known about what would be the maximal distance/spacing between two quadratic residues modulo some primorial? Some texts are around for the modulus squarefree, but they are too complicated for me. Does anyone know anything about this? Or maybe if I'm asking this at the wrong forum, could anyone direct me to people knowing more about this? Greet Zippy |
![]() |
![]() |
![]() |
#2 | |
"Forget I exist"
Jul 2009
Dartmouth NS
2×3×23×61 Posts |
![]() Quote:
using b# as the primorial function up to b: through algebra we can say Last fiddled with by science_man_88 on 2015-07-11 at 22:57 |
|
![]() |
![]() |
![]() |
#3 |
(loop (#_fork))
Feb 2006
Cambridge, England
2×7×461 Posts |
![]()
Interesting question! There's going to be some contribution based on the smallest pseudo-square (e.g. mod 2*3*5*7*11*13*17*19*23, the first quadratic residue which isn't the lift of a rational square is 399, so there are gaps going up to 37 before that); thinking of it as a collection of independent Bernoulli random variables I'd expect something of the order of 2^{number of primes in product}.
Mod 2*3*5*7*11*13*17*19*23 the biggest gap appears to be the 1157 before 63495366. Code:
N=2*3*5*7*11*13*17;print(N);bsf=0;k=1;for(j=2,N-1,if(issquare(Mod(j,N)),if(j-k>bsf,bsf=j-k;print([j-k,j]));k=j)) |
![]() |
![]() |
![]() |
#4 |
(loop (#_fork))
Feb 2006
Cambridge, England
11001001101102 Posts |
![]()
Apropos of little, the biggest gap for 2*3*5*7*11*13*17*19*23*29 is 2902, coming up to t=787098376.
Is there even a sensible way, beyond exhaustive search over signs-of-square-roots, of finding the smallest positive N with N^2 == X mod Y for some Y with lots of prime factors? Code:
q=N;forvec(X=vector(10,t,[0,1]),L=lift(chinese(vector(10,t,(2*X[t]-1)*sqrt(Mod(787095474,p[t])))));if(L<q,print(L);q=L)) |
![]() |
![]() |
![]() |
#5 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
37×163 Posts |
![]()
I can't think of a way to find the smallest. To find an example a possible method would be similar to the quadratic sieve. Whether this could be improved upon for a highly composite number is a different question.
|
![]() |
![]() |
![]() |
#6 | |
"Forget I exist"
Jul 2009
Dartmouth NS
2×3×23×61 Posts |
![]() Quote:
Last fiddled with by science_man_88 on 2015-07-17 at 13:49 |
|
![]() |
![]() |
![]() |
#7 |
Jul 2015
2 Posts |
![]()
Thanks for replying,
I am actually looking at invertible elements modulo an odd primorial, since half of them are shifts of squares I wondered about this. Anyway it seems not an easy question. |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
question: decidability for quadratic residues modulo a composite | LaurV | Math | 18 | 2017-09-16 14:47 |
Fun with LL residues | NBtarheel_33 | Data | 19 | 2015-04-21 16:02 |
residues and non residues of general quadratic congruences | smslca | Math | 0 | 2012-10-12 06:42 |
weird residues | ATH | Data | 2 | 2012-08-14 02:25 |
Quadratic Residues | Romulas | Math | 3 | 2010-05-09 03:27 |