Bored!

Find the number of integers 1 n 1000 1 \leq n \leq 1000 such that 7 a b 7|\overline{ab} ,where a n ( m o d 3 ) , 0 a 2 a \equiv n \ (mod \ 3) \ , \ 0\leq a \leq2 and b n ( m o d 5 ) , 0 b 4 b \equiv n \ (mod \ 5) \ , \ 0\leq b \leq4 .


The answer is 199.

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

Since a b \overline{ab} is a two digit number and it should be a multiple of 7 7 and 0 a 2 0 \leq a \leq 2 and 0 b 4 0 \leq b \leq 4 . Therefore, a b \overline{ab} can only be either of the following integers { 00 , 14 , 21 } \{00,14,21\} . For each possible a b \overline{ab} , we should solve the system

n a ( m o d 3 ) n \equiv a \ (mod 3)

n b ( m o d 5 ) n \equiv b \ (mod 5)

using Chinese remainder theorem. for each of the possibilities { 00 , 14 , 21 } \{00,14,21\} , n 0 , 4 , 11 ( m o d 15 ) n \equiv 0,4,11 \ (mod 15) respectively. So, in the set { 1 , 2 , 3 , , 15 } \{1,2,3,\dots , 15\} , there are exactly 3 3 integers, that contribute to the final answer. Since 1000 = 66 × 15 + 10 1000=66 \times 15 +10 , there would be 66 × 3 + 1 = 199 66\times 3 +1=199 such integers.

Are you guys punishing me or something? why don't you solve the question.

A Former Brilliant Member - 2 years, 4 months ago

Log in to reply

I got it wrong because I forgot about 00 00 :(

Henry U - 2 years, 4 months ago

Log in to reply

Henry, I am sure you got the main idea correct though

A Former Brilliant Member - 2 years, 4 months ago

Log in to reply

@A Former Brilliant Member I did, and it raised the question about "How many two-digit multiples of some number (here 7) can be written by using only a subset of the possible digits in some base (here 10)?"

For example, 3 multiples of 7 ( 0 , 14 , 21 0,14,21 ) can be written by using the 4 digits { 0 , 1 , 2 , 4 } \{0,1,2,4\} , but with these digits we can also write a fourth multiple, 42. So, we need only 3 digits to write 3 multiples, 14 , 21 , 42 14,21,42 .

But actually, we can write 0 , 7 , 70 , 77 0,7,70,77 using only 2 digits.

Number of digits 1 2 3 4
Maximum number of two-digit multiples of 7 using this number of digits 2 (7,77) 4 (00,07,70,77) 4 \geq 4

Henry U - 2 years, 4 months ago

Log in to reply

@Henry U Cool Henry, you always go further than required, unlike me :D

A Former Brilliant Member - 2 years, 4 months ago

Can you please explain Chinese remainder theorem with example?(I am confused by reading it's wiki)

Mr. India - 2 years, 4 months ago

Log in to reply

Practice like have never won...

A Former Brilliant Member - 2 years, 4 months ago

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...