How many solutions are there to the congruence ( x ! + y ! + x ! y ! ) m o d 1 0 = 3 ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I miss the 'zero' solution
Since x ! m o d 1 0 = 0 for all x ≥ 5 , we need only to consider x , y ∈ [ 0 , 5 ] . We have:
⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ 0 ! = 1 1 ! = 1 2 ! = 2 3 ! = 6 4 ! = 2 4 5 ! = 1 2 0 ⟹ 0 ! m o d 1 0 = 1 ⟹ 1 ! m o d 1 0 = 1 ⟹ 2 ! m o d 1 0 = 2 ⟹ 3 ! m o d 1 0 = 6 ⟹ 4 ! m o d 1 0 = 4 ⟹ 5 ! m o d 1 0 = 0
For x = 5 , then x ! m o d 1 0 = 0 and
x ! + y ! + x ! y ! 0 + y ! + 0 y ! ≡ 3 (mod 10) ≡ 3 (mod 10) ≡ 3 (mod 10)
Since y ! m o d 1 0 = 3 for all y , there is no solution. Of course, if there is then there will be infinitely many solutions to this problem.
For x = 0 , 1 , then x ! m o d 1 0 = 1 and
x ! + y ! + x ! y ! 1 + y ! + y ! 2 y ! y ! ⟹ y ≡ 3 (mod 10) ≡ 3 (mod 10) ≡ 2 (mod 10) ≡ 1 (mod 10) = 0 , 1
There are 4 solutions: ( x , y ) = ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) .
For x = 2 , then x ! m o d 1 0 = 2 and
x ! + y ! + x ! y ! 2 + y ! + 2 y ! 3 y ! ≡ 3 (mod 10) ≡ 3 (mod 10) ≡ 1 (mod 10)
Since 3 y ! m o d 1 0 = 1 for all y , there is no solution.
For x = 3 , then x ! m o d 1 0 = 6 and
x ! + y ! + x ! y ! 6 + y ! + 6 y ! 7 y ! y ! ⟹ y ≡ 3 (mod 10) ≡ 3 (mod 10) ≡ − 3 ≡ 7 (mod 10) ≡ 1 (mod 10) = 0 , 1
There are 4 solutions: ( x , y ) = ( 0 , 3 ) , ( 1 , 3 ) , ( 3 , 0 ) , ( 3 , 1 ) .
For x = 4 , then x ! m o d = 4 and
x ! + y ! + x ! y ! 4 + y ! + 4 y ! 5 y ! ≡ 3 (mod 10) ≡ 3 (mod 10) ≡ − 1 ≡ 9 (mod 10)
Since 5 y ! m o d 1 0 = 9 for all y , there is no solution.
Therefore, there are 8 solutions.
I believe you mean ( 0 , 3 ) , ( 1 , 3 ) , ( 3 , 0 ) , ( 3 , 1 ) , .
At first, I missed the fact 0 for x or y was legitimate. I realized that the maximum value for x or y was 4 as anything higher would result in a 0 value from the modulus function. This left 25 cases. First I checked the x=y cases (4 cases) and found two cases where the modulus was equal to 3. Then, I examined the cases with y>x, of which there are 10, and found 3. Those cases need to be doubled by switching x and y. This gives a grand total of 8 passing cases.
Problem Loading...
Note Loading...
Set Loading...
We can rewrite the expression as x ! + y ! + x ! y ! = ( x ! + 1 ) ( y ! + 1 ) − 1
So ( x ! + 1 ) ( y ! + 1 ) ≡ 4 m o d 1 0
Hence either x ! or y ! must be odd. The only odd factorials are 0 ! = 1 ! = 1 . So (at least) one of the numbers is 0 or 1 . To make it easier to count solutions, let's say this number is x , so x ! = 1 .
Substituting back in, 2 ( y ! + 1 ) ≡ 4 m o d 1 0 . This leads to two possible congruences; either y ! ≡ 1 or y ! ≡ 6 . Both of these have solutions; they are y = 0 , 1 , or y = 3 . (There are very few possibilities here - note that y ! ≡ 0 m o d 1 0 for y ≥ 5 )
Combining these (and remembering to count ordered pairs), the full set of solutions is { ( 0 , 0 ) , ( 0 , 1 ) , ( 0 , 3 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 1 , 3 ) , ( 3 , 0 ) , ( 3 , 1 ) } ; there are 8 of these.