Let's divide 945871 by 7
We want to figure out the number of times 945871 can be divided by 7.

Step 1:
When dividing 9 by 7, we get 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 7 from 9 to get 2.
Append the next digit (4) from the dividend to 2 and continue with: 24 / 7

Moving on to step 2:
7 can be fit into 24 3 times, resulting in a remainder of 3.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
Subtract 21 from 24 to get 3.
Bring next digit (5) of the dividend behind the 3 and repeat the process: 35 / 7

Moving on to step 3:
7 can be fit into 35 5 times, resulting in a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 135.0
The remainder is 0 after subtracting 35 from 35.
Bring next digit (8) of the dividend behind the 0 and repeat the process: 8 / 7

On to step 4:
The number 7 fits into 8 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 1351.0
Deduct 7 from 8 and we're left with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 7

Step 5:
If we divide 17 by 7, we get 2 and a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 13512.0
The remainder is 3 after subtracting 14 from 17.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 7

Advancing to step 6:
The number 7 fits into 31 4 times, leaving a remainder of 3.
Use 4 as the next digit of our solution. 
Result so far: 135124.0
If we subtract 28 from 31, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
If we divide 30 by 7, we get 4 and a remainder of 2.
The next digit of our result is 4. 
Result so far: 135124.4
Subtracting 28 from 30 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 8:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 135124.42
Deduct 14 from 20 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 9:
The number 7 fits into 60 8 times, leaving a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 135124.428
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 10:
7 goes into 40 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 135124.4285
The remainder is 5 after subtracting 35 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 11:
If we divide 50 by 7, we get 7 and a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 135124.42857
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.

Going ahead to step 12:
The number 7 fits into 10 1 times, leaving a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 135124.428571
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 13:
30 divided by 7 is 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 135124.4285714
If we subtract 28 from 30, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 14:
7 goes into 20 2 times with a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 135124.42857142
Subtract 14 from 20 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final outcome is 135124.42857142, with a leftover of 6e-09.