We look at the division of 502495 by 7 
We want to figure out the number of times 502495 can be divided by 7.

Advancing to step 1:
If we divide 5 by 7, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 7

Advancing to step 2:
If we divide 50 by 7, we get 7 and a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Subtract 49 from 50 to get 1.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 7

Moving on to step 3:
When dividing 12 by 7, we get 1 with a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 71.0
If we subtract 7 from 12, we get 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 7

On to step 4:
54 divided by 7 is 7 with a remainder of 5.
The next digit of our result is 7. 
Result so far: 717.0
Subtracting 49 from 54 leaves us with 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 7

Moving on to step 5:
The number 7 fits into 59 8 times, leaving a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 7178.0
Subtract 56 from 59 to get 3.
Append the next digit (5) from the dividend to 3 and continue with: 35 / 7

Going ahead to step 6:
If we divide 35 by 7, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 71785.0
If we subtract 35 from 35, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 7:
The number 7 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 71785.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
The number 7 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 71785.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 71785.0 and a remainder of 0.0.