Don't lose your marbles

Let p = 2017 p = 2017 be a prime. Suppose that the number of ways to place p p indistinguishable red marbles, p p indistinguishable green marbles, and p p indistinguishable blue marbles around a circle such that no red marble is next to a green marble and no blue marble is next to a blue marble is N N . (Rotations and reflections of the same configuration are considered distinct.) Given that N = p m n N = p^m \cdot n , where m m is a non-negative integer and n n is not divisible by p p , and r r is the remainder of n n when divided by p p , compute p m + r pm + r .


The answer is 3913.

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

Alan Yan
Jan 14, 2018

The ordering will look like groups of red marbles and green marbles where each group is separated by a blue marble. Let k k be the number of red groups and summing over 1 k p 1 1 \leq k \leq p-1 , we have N = 3 k = 1 p 1 ( p 1 k 1 ) ( p 1 k ) ( p k ) = 3 p k = 1 p 1 1 k ( p 1 k 1 ) 2 ( p 1 k ) . N = 3 \sum_{k = 1}^{p-1} \binom{p-1}{k-1} \binom{p-1}{k} \binom{p}{k} = 3p \sum_{k = 1}^{p-1} \frac{1}{k} \binom{p-1}{k-1}^2 \binom{p-1}{k}. Furthermore, k = 1 p 1 1 k ( p 1 k 1 ) 2 ( p 1 k ) k = 1 p 1 ( 1 ) k k k = 1 p 1 1 k ( p 1 k 1 ) 2 2 p p ( m o d p ) \sum_{k = 1}^{p-1} \frac{1}{k} \binom{p-1}{k-1}^2 \binom{p-1}{k} \equiv \sum_{k = 1}^{p-1} \frac{(-1)^k}{k} \equiv - \sum_{k =1}^{p-1} \frac{1}{k} \binom{p-1}{k-1} \equiv \frac{2 - 2^p}{p} \pmod p So, m = 1 m = 1 and r 3 ( 2 2 p ) p 1896 ( m o d p ) . r \equiv \frac{3(2 - 2^p)}{p} \equiv 1896 \pmod p. Hence, the answer is 2017 + 1896 = 3913 2017 + 1896 = \boxed{3913}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...