Find The Product Mod P

Find the remainder when

1 i < j 100 ( i 2 + i j + j 2 ) \prod_{1 \leq i < j \leq 100} \left( i^2 + ij + j^2 \right)

is divided by 101. 101.

Note: i , j i,j range over all positive integers between 1 1 and 100 100 (inclusive) satisfying i < j . i<j.

Details and assumptions
- You might use the fact that 101 101 is a prime.


The answer is 100.

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.

1 solution

Calvin Lin Staff
Jul 3, 2014

I enjoyed this question. Here is my solution.

Notice that ( i 2 + i j + j 2 ) = i 3 j 3 i j ( i^2 + ij + j^2 ) = \frac{ i^3 - j^3} { i-j} . This strongly suggests that we should look at ( i j ) \prod (i-j) and ( i 3 j 3 ) \prod (i^3 - j^3) .

Claim: { i 3 ( m o d 101 ) } { i ( m o d 101 ) } \{ i^3 \pmod{101} \} \equiv \{ i \pmod{101} \} .

Proof: As hinted by Sreejato, we will use the fact that 101 2 ( m o d 3 ) 101 \equiv 2 \pmod{3} .
Suppose we have a 3 b 3 ( m o d 101 ) a^3 \equiv b^3 \pmod{101} . By Fermat's Little Theorem, since 101 is prime, we know that a 100 b 100 a^{100} \equiv b^{100} . Hence, we conclude that

a a × ( a 33 ) 3 = a 100 b 100 b ( m o d 100 ) . a \equiv a \times \left( a^{33} \right) ^3 = a^{100} \equiv b^{100} \equiv b \pmod{100}. _\square

This shows that the map of i i 3 ( m o d 101 ) i \rightarrow i^3 \pmod{101} is one-to-one. Since they have the same cardinality, thus they are the same set.

Claim: Let ρ ( i ) = i 3 \rho (i) = i^3 denote the permutation on the (non-zero) cubic residues mod 101. Then, the order of ρ \rho is odd.

Proof: Let ω \omega be a primitive element of the non-zero residues mod 101. Then ρ ( ω k ) = ω 3 k \rho ( \omega ^k) = \omega^{3k} and so we have the map ρ ( k ) = 3 k \rho^* (k) = 3k on Z 100 \mathbb{Z} _{100} . By analyzing the orbits, we see that there are 11 cycles (with starting values of 0, 1, 2, 4, 5, 10, 11, 20, 25, 50, 55) hence, the order is 100-11 = odd. _ \square

As such,

1 i j 100 ( i 3 j 3 ) ( m o d 101 ) = 1 i j 100 ( ρ ( i ) ρ ( j ) ) ( m o d 101 ) = s g n ( ρ ) × 1 i j 100 ( i j ) = 1 i j 100 ( i j ) \prod_{1 \leq i \leq j \leq 100} ( i^3 - j^3) \pmod{101} = \prod_{1 \leq i \leq j \leq 100} ( \rho(i) - \rho(j) ) \pmod{101} \\ = sgn ( \rho) \times \prod_{ 1 \leq i \leq j \leq 100 } (i-j) = - \prod_{ 1 \leq i \leq j \leq 100 } (i-j)

This allows us to conclude that

1 i j 100 ( i 2 + i j + j 2 ) 1 100 ( m o d 101 ) . \prod_{ 1 \leq i \leq j \leq 100 } ( i^2 + ij + j^2 ) \equiv -1 \equiv 100 \pmod{101}.

I have reason to believe that the answer is actually 100 100 . This has been checked with Mathematica and Prelude. I will try and expand on this as there might be a flaw in your argument.

EDIT: OK. Here we have a claim saying that the answer is indeed 100 100 as it is actually 1 -1 because of a sgn function on the swapping of the product to cube terms was omitted. The permutation x x 3 x\to x^3 has sign 1 -1 therefore the answer is 100 100 .

EDIT 2: Might I add that this is in no means an attack on the solution. I respect your work and I am pointing out this possible flaw with all due respect.

A Former Brilliant Member - 6 years, 11 months ago

Log in to reply

Yes, I forgot to check the signs. I do believe that it should be 100.

@Sreejato Bhattacharya Do you agree that the answer should be 100?

Calvin Lin Staff - 6 years, 11 months ago

Log in to reply

Yes, so sorry for that. I have changed the problem statement.

Sreejato Bhattacharya - 6 years, 11 months ago

Log in to reply

@Sreejato Bhattacharya I think it's better to stick to the original intention of the problem (and it's simplicity). I've updated the answer to 100.

Calvin Lin Staff - 6 years, 11 months ago

@Sreejato Bhattacharya The sign is sneaky so don't worry! I enjoyed your problem thoroughly!

A Former Brilliant Member - 6 years, 11 months ago

Log in to reply

@A Former Brilliant Member not fair, i proccedeed exactly as Calvin but i wrote -1 instead of 100 >:(

Héctor Andrés Parra Vega - 6 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...