Can't understand this remainder solution

The problem is:

$W$ is a positive integer when divided by $5$ gives remainder $1$ and when divided by $7$ gives remainder $5$. Find $W$.

Answer: Take the larger divisor , So Expression becomes $7k+5$. Now this number when divided by $5$ gives remainder $1$ so expression becomes $7k+4$ which is divisible by $5$. Now plugging in values for $k$ as $0,1,2,..$ we get $7(3)+4$ which is divisible by $5$ so $k=3$.

I know that $\frac{W}{5} => remainder~1$ so $5q+1=W$
$\frac{W}{7} => remainder~5$ so $7k+5=W$

Edit: Now I know that $5q+1 = 7k+5$

This implies $q=\frac{7k+4}{5}$

Now how did the text assume that $7k+4$ is divisible by $5$ and there would be no remainder?

-
$5k+1=7K+5 \Rightarrow 5k=7K+4$ – sabertooth Jul 16 '12 at 6:35

If $7k+5$ leaves a remainder of 1 when divided by 5, then $7k+4$ leaves a remainder of 0 when divided by 5, and so is divisible by 5.

To say that a number, say $7k+5$ "leaves a remainder of 1 when divided by 5" is exactly to say that it has the form $5q+1$ for some integer $q$. So we have $7k+5=5q+1$ for some integer $q$, and so $7k+4 = 5q$. Therefore $7k+4$ is a multiple of 5.

In general, of $x$ leaves a remainder of $r$ when divided by $n$, then $x-1$ leaves a remainder of $r-1$, unless $r=0$.

-
Could you explain "7k+4 leaves a remainder of 0 when divided by 5" a bit in detail.. – Rajeshwar Jul 16 '12 at 7:31
I hope this elaboration makes it clearer. – MJD Jul 16 '12 at 7:41
Yes thanks for the explanation. – Rajeshwar Jul 16 '12 at 8:04

Hint $\rm\ \, 7k+5\, =\, 5\, q + 1\:\Rightarrow\: 7k+4\, =\, 5\,q,\$ i.e. $\rm\:5\:|\:7k+4.$

Remark $\$ You may find helpful my posts on Easy CRT.

-
Thanks for your post. Could you briefly explain what $5|7k+4$ means ? links ? – Rajeshwar Jul 16 '12 at 6:50
@Rajeshwar $\rm\ M\:|\:N\:$ means $\rm\:M\,$ divides $\rm\,N\$ (standard number theory notation) – Bill Dubuque Jul 16 '12 at 6:55
Thanks but I still dont get how the text assumes that 7k+4 is completely divisible by 5 ? – Rajeshwar Jul 16 '12 at 7:00
@Rajeshwar It follows by subtracting $1$ from both sides of my first equation above (which says that $\rm\:W = 7k+5\:$ has remainder $1$ when divided by $5).$ – Bill Dubuque Jul 16 '12 at 7:07
Just added to my question.. – Rajeshwar Jul 16 '12 at 7:20