We look at the division of 126317 by 7 
Our goal is to divide 126317 by 7.

On to step 1:
The number 7 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 7

On to step 2:
When dividing 12 by 7, we get 1 with a remainder of 5.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 7 from 12 leaves us with 5.
Take the next digit (6) from the dividend and append it to 5, then repeat: 56 / 7

Moving on to step 3:
When dividing 56 by 7, we get 8 with a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 18.0
Deduct 56 from 56 and we're left with 0.
Fetch the next digit (3) from the dividend, attach it to 0 and continue: 3 / 7

Advancing to step 4:
When dividing 3 by 7, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 180.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 7

Step 5:
If we divide 31 by 7, we get 4 and a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 1804.0
If we take 28 away from 31, we end up with 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 7

Moving on to step 6:
When dividing 37 by 7, we get 5 with a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 18045.0
Deduct 35 from 37 and we're left 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.

Moving on to step 7:
7 can be fit into 20 2 times, resulting in a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 18045.2
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.

Let's proceed to step 8:
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: 18045.28
Subtract 56 from 60 to 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 9:
40 divided by 7 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 18045.285
Deduct 35 from 40 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 10:
7 goes into 50 7 times with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 18045.2857
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.

Moving on to step 11:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 18045.28571
Subtract 7 from 10 to 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.

Let's proceed to step 12:
7 goes into 30 4 times with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 18045.285714
Subtract 28 from 30 to 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.

Let's proceed to step 13:
When dividing 20 by 7, we get 2 with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 18045.2857142
If we subtract 14 from 20, we 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.

Going ahead to step 14:
The number 7 fits into 60 8 times, leaving a remainder of 4.
The next digit of our result is 8. 
Result so far: 18045.28571428
If we subtract 56 from 60, 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.

In conclusion, the division gives 18045.28571428 with a balance of 4e-09.