Congruence Problem 2

How many solutions are there to the congruence ( x ! + y ! + x ! y ! ) m o d 10 = 3 (x!+y!+x!y!) \bmod 10 = 3 ?


The answer is 8.

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.

3 solutions

Chris Lewis
Dec 18, 2018

We can rewrite the expression as x ! + y ! + x ! y ! = ( x ! + 1 ) ( y ! + 1 ) 1 x!+y!+x!y!=(x!+1)(y!+1)-1

So ( x ! + 1 ) ( y ! + 1 ) 4 m o d 10 (x!+1)(y!+1) \equiv 4 \bmod 10

Hence either x ! x! or y ! y! must be odd. The only odd factorials are 0 ! = 1 ! = 1 0!=1!=1 . So (at least) one of the numbers is 0 0 or 1 1 . To make it easier to count solutions, let's say this number is x x , so x ! = 1 x!=1 .

Substituting back in, 2 ( y ! + 1 ) 4 m o d 10 2(y!+1) \equiv 4 \bmod 10 . This leads to two possible congruences; either y ! 1 y!\equiv 1 or y ! 6 y!\equiv 6 . Both of these have solutions; they are y = 0 , 1 y=0,1 , or y = 3 y=3 . (There are very few possibilities here - note that y ! 0 m o d 10 y!\equiv0\bmod 10 for y 5 y\ge5 )

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 ) } \{(0,0),(0,1),(0,3),(1,0),(1,1),(1,3),(3,0),(3,1)\} ; there are 8 \boxed8 of these.

I miss the 'zero' solution

Muhammad Dihya - 2 years, 3 months ago
Chew-Seong Cheong
Dec 17, 2018

Since x ! m o d 10 = 0 x! \bmod 10 = 0 for all x 5 x \ge 5 , we need only to consider x , y [ 0 , 5 ] x, y \in [0, 5] . We have:

{ 0 ! = 1 0 ! m o d 10 = 1 1 ! = 1 1 ! m o d 10 = 1 2 ! = 2 2 ! m o d 10 = 2 3 ! = 6 3 ! m o d 10 = 6 4 ! = 24 4 ! m o d 10 = 4 5 ! = 120 5 ! m o d 10 = 0 \begin{cases} 0! = 1 & \implies 0! \bmod 10 = 1 \\ 1! = 1 & \implies 1! \bmod 10 = 1 \\ 2! = 2 & \implies 2! \bmod 10 = 2 \\ 3! = 6 & \implies 3! \bmod 10 = 6 \\ 4! = 24 & \implies 4! \bmod 10 = 4 \\ 5! = 120 & \implies 5! \bmod 10 = 0 \end{cases}

For x = 5 x = 5 , then x ! m o d 10 = 0 x! \bmod 10 = 0 and

x ! + y ! + x ! y ! 3 (mod 10) 0 + y ! + 0 3 (mod 10) y ! 3 (mod 10) \begin{aligned} x! + y! + x!y! & \equiv 3 \text{ (mod 10)} \\ 0 + y! + 0 & \equiv 3 \text{ (mod 10)} \\ y! & \equiv 3 \text{ (mod 10)} \end{aligned}

Since y ! m o d 10 3 y! \bmod 10 \ne 3 for all y y , there is no solution. Of course, if there is then there will be infinitely many solutions to this problem.

For x = 0 , 1 x = 0, 1 , then x ! m o d 10 = 1 x! \bmod 10 = 1 and

x ! + y ! + x ! y ! 3 (mod 10) 1 + y ! + y ! 3 (mod 10) 2 y ! 2 (mod 10) y ! 1 (mod 10) y = 0 , 1 \begin{aligned} x! + y! + x!y! & \equiv 3 \text{ (mod 10)} \\ 1 + y! + y! & \equiv 3 \text{ (mod 10)} \\ 2y! & \equiv 2 \text{ (mod 10)} \\ y! & \equiv 1 \text{ (mod 10)} \\ \implies y & = 0, 1 \end{aligned}

There are 4 \color{#D61F06}4 solutions: ( x , y ) = ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) (x,y) = (0,0), (0,1), (1,0), (1,1) .

For x = 2 x = 2 , then x ! m o d 10 = 2 x! \bmod 10 = 2 and

x ! + y ! + x ! y ! 3 (mod 10) 2 + y ! + 2 y ! 3 (mod 10) 3 y ! 1 (mod 10) \begin{aligned} x! + y! + x!y! & \equiv 3 \text{ (mod 10)} \\ 2 + y! + 2y! & \equiv 3 \text{ (mod 10)} \\ 3y! & \equiv 1 \text{ (mod 10)} \end{aligned}

Since 3 y ! m o d 10 1 3y! \bmod 10 \ne 1 for all y y , there is no solution.

For x = 3 x=3 , then x ! m o d 10 = 6 x! \bmod 10 = 6 and

x ! + y ! + x ! y ! 3 (mod 10) 6 + y ! + 6 y ! 3 (mod 10) 7 y ! 3 7 (mod 10) y ! 1 (mod 10) y = 0 , 1 \begin{aligned} x! + y! + x!y! & \equiv 3 \text{ (mod 10)} \\ 6 + y! + 6y! & \equiv 3 \text{ (mod 10)} \\ 7y! & \equiv -3 \equiv 7 \text{ (mod 10)} \\ y! & \equiv 1 \text{ (mod 10)} \\ \implies y & = 0, 1 \end{aligned}

There are 4 \color{#D61F06}4 solutions: ( x , y ) = ( 0 , 3 ) , ( 1 , 3 ) , ( 3 , 0 ) , ( 3 , 1 ) (x,y) = (0,3), (1,3), (3,0), (3,1) .

For x = 4 x = 4 , then x ! m o d = 4 x! \bmod = 4 and

x ! + y ! + x ! y ! 3 (mod 10) 4 + y ! + 4 y ! 3 (mod 10) 5 y ! 1 9 (mod 10) \begin{aligned} x! + y! + x!y! & \equiv 3 \text{ (mod 10)} \\ 4 + y! + 4y! & \equiv 3 \text{ (mod 10)} \\ 5y! & \equiv -1 \equiv 9 \text{ (mod 10)} \end{aligned}

Since 5 y ! m o d 10 9 5y! \bmod 10 \ne 9 for all y y , there is no solution.

Therefore, there are 8 \color{#D61F06} \boxed 8 solutions.

I believe you mean ( 0 , 3 ) , ( 1 , 3 ) , ( 3 , 0 ) , ( 3 , 1 ) , (0,3),(1,3),(3,0),(3,1), .

Jordan Cahn - 2 years, 5 months ago

Log in to reply

Thanks. I will change it.

Chew-Seong Cheong - 2 years, 5 months ago

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.

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...