We're dividing 501582 by 7 
We want to figure out the number of times 501582 can be divided by 7.

On to step 1:
7 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 7

Moving on to step 2:
The number 7 fits into 50 7 times, leaving a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Subtracting 49 from 50 leaves us with 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 7

On to step 3:
When dividing 11 by 7, we get 1 with a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 71.0
Subtracting 7 from 11 leaves us with 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 7

Moving on to step 4:
When dividing 45 by 7, we get 6 with a remainder of 3.
The number 6 becomes the next digit in our result. 
Result so far: 716.0
Subtracting 42 from 45 leaves us with 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 7

Advancing to step 5:
7 goes into 38 5 times with a remainder of 3.
The number 5 becomes the next digit in our result. 
Result so far: 7165.0
If we subtract 35 from 38, we get 3.
Grab the next digit (2) from the dividend, add it to 3, then carry on: 32 / 7

Going ahead to step 6:
When dividing 32 by 7, we get 4 with a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 71654.0
If we subtract 28 from 32, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 7:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 71654.5
If we subtract 35 from 40, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 8:
When dividing 50 by 7, we get 7 with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 71654.57
Subtracting 49 from 50 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 9:
If we divide 10 by 7, we get 1 and a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 71654.571
The remainder is 3 after subtracting 7 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 10:
The number 7 fits into 30 4 times, leaving a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 71654.5714
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 11:
If we divide 20 by 7, we get 2 and a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 71654.57142
The remainder is 6 after subtracting 14 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 12:
7 can be fit into 60 8 times, resulting in a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 71654.571428
Deduct 56 from 60 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 13:
The number 7 fits into 40 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 71654.5714285
If we subtract 35 from 40, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 14:
50 divided by 7 is 7 with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 71654.57142857
Subtracting 49 from 50 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final result is 71654.57142857 with a remainder of 1e-09.