SOLUTION: find greatest number of four digits which when divided by 3,5,7,9 leaves remainder 1,3,5,7 respectively

Algebra.Com
Question 119667: find greatest number of four digits which when divided by 3,5,7,9 leaves remainder 1,3,5,7 respectively
Answer by Edwin McCravy(20060)   (Show Source): You can put this solution on YOUR website!
find greatest number of four digits which when divided by 3,5,7,9 leaves remainder 1,3,5,7 respectively

Let's first look at the properties of ALL such 
integers, not necessarily the greatest one with 
four digits, not necessarily even one with four 
digits, and not necessarily even one that is 
positive.

Theorem:
If two integers p and q are such that p mod r = q mod r,
then they differ by a multiple of r.

Proof:

p mod r = q mod r

(p mod r) - (q mod r) = (0 mod r)

(p - q) mod r = 0 mod r

Thus they must differ by a multiple of r.

Therefore if p and q both satisfy the given
conditions, then they must differ by some 
multiple of 3, which is also a multiple of 5, 
which is also a multiple of 7, and which is 
also a multiple of 9.

Since a multiple of 9 is also a multiple of 3, 
we only need to multiply 5x7x9 = 315 to find the 
smallest number two such numbers can differ by.
This suggests an arithmetic sequence of values
satisfying the given conditions. 

Now let's find ANY integer meeting the 
given requirements.

If p is such an integer then there exist 
integers a,b,c,d such that 

p = 3a + 1 = 5b + 3 = 7c + 5 = 9d + 7

Let's investigate to find out if there exists 
a simple solution where a = b = c = d. If so then

p = 3a + 1 = 5a + 3 = 7a + 5 = 9a + 7

Now we are in luck here because setting any of
the 4 expressions on the right equal to each
other gives a = -1 and thus p = -2

So the arithmetic sequence with first term

a1 = p = -2 and common difference d = 315 will be 
an arithmetic sequence of integers meeting the 
given requirements.

The nth term of an arithmetic sequence is given by

an = a1 + (n-1)d

an = -2 + (n-1)(315)

an = -2 + 315n - 315

an = -317 + 315n

Now since the term of this sequence we are seeking
is the largest one with 4 digits, we require that it
be less than 10000.

So 

an = -317 + 315n < 10000
            315n < 10317
               n < 32

So the largest value of n we can use
is n = 32.

So

a32 = -317 + 315(32)

a32 = 9763 
 
That's it!

Edwin





RELATED QUESTIONS

Find the greatest number of 5 digits which when divided by 25,30,40 leaves a remainder of (answered by ikleyn)
What is the smallest possible integer that's greater than 100, and leaves a remainder of... (answered by CubeyThePenguin)
What is the lowest number n that when divided by 3 leaves a remainder of 1, when divided... (answered by ikleyn)
what number less than 3000 when divided by 10 has a remainder of 9 and when divided by 9... (answered by venugopalramana)
What is that number , when that number is divided by 9 the remainder is 8 , when that... (answered by AnlytcPhil)
A number when divided by 7 leaves a remainder 3 & the resulting quotient when divided by... (answered by mathmate)
A certain number leaves a remainder of 4 when divided by 5, a remainder of 5 when divided (answered by ikleyn,ankor@dixie-net.com)
A number N when divided by 5 leaves remainder 1 and when divided by 6 leaves remainder 3. (answered by rothauserc)
Find the greatest number of four digits which when increased by 1 is exactly divisible by (answered by Edwin McCravy)