Divisibility properties in a sequence

Suppose n 1 , n 2 , . . . , n 10 n_1,n_2,...,n_{10} are 10 distinct positive integers, all greater than 1. 1. What is the largest possible number of ordered pairs ( i , j ) (i,j) such that 2 n i 1 2^{n_i}-1 is a multiple of n j ? n_j?

Details and assumptions

You may use the fact that 10 P 2 = 90 ^{10}P_2 = 90 .


The answer is 45.

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

Jon Haussmann
Sep 16, 2013

We say that the ordered pair ( a , b ) (a,b) of positive integers is a good pair if a a divides 2 b 1 2^b - 1 . (Note that the definition is not symmetric.) Then the problem is to maximize the number of good pairs of the form ( n j , n i ) (n_j, n_i) .

First we prove the following result.

Lemma 1 . If a a and b b are positive integers greater than 1, then at most one of the pairs ( a , b ) (a,b) and ( b , a ) (b,a) is good.

Proof . For the sake of contradiction, suppose that both pairs ( a , b ) (a,b) and ( b , a ) (b,a) are good, so a a divides 2 b 1 2^b - 1 and b b divides 2 a 1 2^a - 1 . Let p p be the smallest prime dividing either a a or b b . (Such a prime must exist since both a a and b b are greater than 1.) Without loss of generality, assume that p p divides a a . Then p p divides 2 b 1 2^b - 1 . In particular, p p must be odd.

Let d d be the order of 2 modulo p p , so d > 1 d > 1 . Since 2 b 1 ( m o d p ) 2^b \equiv 1 \pmod{p} , it follows that d d divides b b . But by Fermat's Little Theorem, 2 p 1 1 ( m o d p ) 2^{p - 1} \equiv 1 \pmod{p} , so d d divides p 1 p - 1 . In particular, d d is less than p p . Since d > 1 d > 1 , d d must be divisible by some prime. But d d divides b b and d d is less than p p , contradicting the minimality of p p . Therefore, at most one of the pairs ( a , b ) (a,b) and ( b , a ) (b,a) is good. \blacksquare

It follows from Lemma 1 that for all i j i \neq j , at most one of the pairs ( n i , n j (n_i, n_j ) and ( n j , n i ) (n_j, n_i) is good. By taking a = b a = b in Lemma 1, it also follows that no pair of the form ( n i , n i ) (n_i, n_i) is good. Hence, the number of good pairs among the 10 positive integers is at most ( 10 2 ) = 45 \binom{10}{2} = 45 .

We claim that it is possible to have 45 good pairs. To show this, we prove another result.

Lemma 2 . If ( a , b ) (a,b) is a good pair, then so is ( 2 a 1 , 2 b 1 ) (2^a - 1, 2^b - 1) .

Proof . Let ( a , b ) (a,b) be a good pair, so a a divides 2 b 1 2^b - 1 . Let 2 b 1 = a c 2^b - 1 = ac . Then 2 2 b 1 1 = 2 a c 1 = ( 2 a 1 ) ( 2 a ( c 1 ) + 2 a ( c 2 ) + + 1 ) , 2^{2^b - 1} - 1 = 2^{ac} - 1 = (2^a - 1)(2^{a(c - 1)} + 2^{a(c - 2)} + \dots + 1), so ( 2 a 1 , 2 b 1 ) (2^a - 1, 2^b - 1) is also a good pair. \blacksquare

We construct a sequence of sequences inductively, where each sequence has the following properties: (1) All the terms are odd, distinct positive integers greater than 1, and (2) if a a and b b are any two different terms in the sequence in that order, then ( a , b ) (a,b) is a good pair.

The first sequence consists of one term, namely 3. Now, consider such a sequence ( n 1 , n 2 , , n k ) (n_1, n_2, \dots, n_k) of length k k , so ( n i , n j ) (n_i, n_j) is a good pair for all i < j i < j . Then the next sequence is ( 2 n 1 1 , 2 n 2 1 , , 2 n k 1 , 2 c 1 ) . (2^{n_1} - 1, 2^{n_2} - 1, \dots, 2^{n_k} - 1, 2^c - 1). The value of c c is chosen as follows: Since all the n i n_i are odd, M : = lcm ( n 1 , n 2 , , n k ) M := \text{lcm}(n_1, n_2, \dots, n_k) is odd. Then there exists a positive integer c c such that 2 c 1 ( m o d M ) 2^c \equiv 1 \pmod{M} . Take the smallest positive integer c c that has this property.

In this new sequence with k + 1 k + 1 terms, it is clear that property (1) holds. (Note that from the case a = b a = b in Lemma 1, c c cannot coincide with any of the n i n_i .)

By Lemma 2, ( 2 n i 1 , 2 n j 1 ) (2^{n_i} - 1, 2^{n_j} - 1) is a good pair for all i < j i < j . Also, by construction, ( n i , c ) (n_i, c) is a good pair for all i i , so again by Lemma 2, ( 2 n i 1 , 2 c 1 ) (2^{n_i} - 1, 2^c - 1) is also a good pair for all i i . Thus, property (2) holds.

The first few sequences are as follows:

\begin{gather*} (3), \\ (7, 3), \\ (127, 7, 63), \\ (2^{127} - 1, 127, 2^{63} - 1, 2^{42} - 1). \end{gather*}

Thus, for any positive integer k k , we can find k k distinct positive integers greater than 1 that contain ( k 2 ) \binom{k}{2} good pairs.

Moderator note:

Brilliant!

Yeah... the way i solved it was i saw that both (a, b) and (b, a) can't be good and i entered 90/2=45. I feel like i shouldn't have passed it this way :( But, nice solution though.

Dragan Markovic - 7 years, 8 months ago

Brilliant soluyion Dragan!

Daniel Wang - 7 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...