There are two similar congruences:
x2−6x≡16(mod512)y2−y≡16(mod512)
It is easy to see that the gcd of all three parts in both of them is 16, x and x−6 are even and one of y and y−1 is odd. After also noticing x≢x−6(mod4) we have
x≡0(mod8)orx−6≡0(mod8)
y≡0(mod16)ory−1≡0(mod16)
Making substitutions x=8n,x=8n+6,y=16m,y=16m+1 I obtained congruences with modulus 32, but couldn't make it any further. I also discovered that the first congruence can be rewritten as (x+2)(x−8)≡0(mod512) while −2 and 8 appear to be its solutions. However, it's still not clear to me whether there are more of them.
What am I missing? How can such congruences be solved?
Answer
The first one is easy. You need (x−8)(x+2) divisible by 512. Both x+8 and x−2 are even, but only one of them can have higher powers of 2 as factors. Thus, x≡8(mod256) or x≡−2(mod256).
The second requires more care.
First assuming y≡0(mod16) you have y=16y0 and 16y20=y0+1(mod32)
Since 16y20 is even, y0+1 is even, so y0 is odd. When y0 odd, 16y20≡16(mod32), so y0≡15(mod32)= and y≡16⋅15=240(mod512).
Second, assume y=16y0+1. Then 16y20≡1−y0(mod32)
So the two solutions are y≡240,273(mod512).
Note that the sum of these two values is 1(mod512), as befits the two roots of any quadratic equation of the form x2−x+C=0.
Indeed, we have (y−240)(y−273)≡y2−y−16(mod512), so these are the only solutions, since only one of y−240 and y−273 can be even.
No comments:
Post a Comment