A number theory problem by Akshat Sharda

For a positive integer p p define a positive integer n n to be n safe n-\text{safe} if n n differs in absolute value by more than 2 2 from all multiples of p p . For example, the set of 10 safe 10-\text{safe} numbers is 3 , 4 , 5 , 6 , 7 , 13 , 14 , 3,4,5,6,7,13,14,\ldots

Find the number of positive integers 10000 ≤10000 which are simultaneously 7 safe , 11 safe 7-\text{safe}, 11-\text{safe} and 13 safe 13-\text{safe} .


The answer is 958.

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

John Gilling
Mar 15, 2016

We are looking for numbers that are NOT equal to 0 , ± 1 , ± 2 0, \pm 1, \pm 2 (mod 7, 11, or 13).

Put another way, we want numbers that are simultaneously:

3 or 4 (mod 7);

3, 4, 5, 6, 7, or 8 (mod 11); and

3, 4, 5, 6, 7, 8, 9, or 10 (mod 13).

There are 2 * 6 * 8 = 96 possible combinations of the restrictions above.

By the Chinese Remainder Theorem, since 7, 11, and 13 are relatively prime, it follows that each of these combinations yields a unique solution (mod 7 * 11 * 13 = 1001). That is, there are 96 unique numbers between 1 and 1001 (inclusive) that are 7-safe, 11-safe, and 13-safe.

Since any set of numbers { i Z n i n + 1000 , n Z } \{i \in \mathbb{Z} \mid n \leq i \leq n + 1000, n \in \mathbb{Z} \} is a complete residue system (mod 1001), it follows that there are 96 more unique solutions for every adjacent block of 1001 numbers. Specifically, there are 960 unique solutions less than or equal to 10010.

It's easy to manually check that the only simultaneously 7-safe, 11-safe and 13-safe numbers in the range { i 10001 i 10010 } \{i \mid 10001 \leq i \leq 10010\} are 10006 and 10007, so we've over-counted by two, giving a final answer of 958 solutions.

Great question!

Moderator note:

Good approach applying CRT to solve the problem.

Not an original! I found it somewhere. Nice solution!

Akshat Sharda - 5 years, 3 months ago

Log in to reply

Me too.I've found it somewhere before.

Abdur Rehman Zahid - 5 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...