How does sagemath solve X*a*b+Y*a+Y*b+Z mod N = 0 knowing X,Y,Z,N without factoring N? Is there a computationally efficient way to solve this?
If N=(6a+1)(6*b+1)
C=(N-1)/6
A=(2*C^2+C) mod N
B=N-A
(-16C^2-8C-1) mod N =X
(-B+16C^3+6C^2) mod N =Y
(-12C^4-4C^3+A*B) mod N=Z
we get
Xab+Ya+Yb+Z=N*W
so
Xab+Ya+Yb+Z mod N = 0
How does sagemath solve Xab+Ya+Yb+Z mod N = 0 knowing X,Y,Z,N without factoring N? Is there a computationally efficient way to solve this?
Example: N=403=13*31
179ab+97a+97b+352 mod 403 = 0
This is equivalent to factorization of N. So, the answer is "impossible".
See comments at https://mathoverflow.net/q/499600
If we found
(Xc-Nd)=36n+u && (Yc-Nf)=6n+v
such that
u<36; uab+va+vb < h*N
where h is the computational cost
with u mod 6 != 0
Example
(179c-403d)=36n+3 , (97c-403f)=6n+v , n=-51*c-168 ,c=-100 ,v=202
(364932+3)ab+(64932+202)a+(64932+202)b+264=403W ,a=2,b=5
W=4932 + |_(3ab+202*(a+b))/403_| - |_4932/403_|+1
W=4932+3-12+1
|_(3ab+202*(a+b))/403_|=3 is h
If we found u and v to be small numbers, then we could factor N.
What do you think?
I think this is off-topic here.