We're dividing 22172787 by 313 
We're looking to find how many times 313 goes into 22172787.

On to step 1:
When dividing 2 by 313, we get 0 with a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 313

On to step 2:
If we divide 22 by 313, we get 0 and a remainder of 22.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 22 to get 22.
Fetch the next digit (1) from the dividend, attach it to 22 and continue: 221 / 313

On to step 3:
The number 313 fits into 221 0 times, leaving a remainder of 221.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 221, we end up with 221.
Grab the next digit (7) from the dividend, add it to 221, then carry on: 2217 / 313

On to step 4:
When dividing 2217 by 313, we get 7 with a remainder of 26.
Use 7 as the next digit of our solution. 
Result so far: 7.0
The remainder is 26 after subtracting 2191 from 2217.
Grab the next digit (2) from the dividend, add it to 26, then carry on: 262 / 313

On to step 5:
When dividing 262 by 313, we get 0 with a remainder of 262.
The next digit of our result is 0. 
Result so far: 70.0
If we subtract 0 from 262, we get 262.
Take the next digit (7) from the dividend and append it to 262, then repeat: 2627 / 313

Going ahead to step 6:
2627 divided by 313 is 8 with a remainder of 123.
The number 8 becomes the next digit in our result. 
Result so far: 708.0
If we subtract 2504 from 2627, we get 123.
Include the next digit (8) from the dividend after 123, then repeat: 1238 / 313

Step 7:
If we divide 1238 by 313, we get 3 and a remainder of 299.
The next digit of our result is 3. 
Result so far: 7083.0
If we take 939 away from 1238, we end up with 299.
Fetch the next digit (7) from the dividend, attach it to 299 and continue: 2997 / 313

Advancing to step 8:
If we divide 2997 by 313, we get 9 and a remainder of 180.
Put 9 as the next digit of the answer. 
Result so far: 70839.0
If we subtract 2817 from 2997, we get 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Advancing to step 9:
1800 divided by 313 is 5 with a remainder of 235.
The next digit of our result is 5. 
Result so far: 70839.5
If we subtract 1565 from 1800, we get 235.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2350, and continue the process.

Going ahead to step 10:
The number 313 fits into 2350 7 times, leaving a remainder of 159.
Put 7 as the next digit of the answer. 
Result so far: 70839.57
Subtracting 2191 from 2350 leaves us with 159.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1590, and continue the process.

Step 11:
313 can be fit into 1590 5 times, resulting in a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 70839.575
Subtract 1565 from 1590 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 12:
When dividing 250 by 313, we get 0 with a remainder of 250.
Put 0 as the next digit of the answer. 
Result so far: 70839.575
If we subtract 0 from 250, we get 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Going ahead to step 13:
2500 divided by 313 is 7 with a remainder of 309.
The number 7 becomes the next digit in our result. 
Result so far: 70839.57507
Subtract 2191 from 2500 to get 309.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3090, and continue the process.

Moving on to step 14:
3090 divided by 313 is 9 with a remainder of 273.
Record the quotient 9 as the next digit in the result. 
Result so far: 70839.575079
The remainder is 273 after subtracting 2817 from 3090.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2730, and continue the process.

On to step 15:
313 goes into 2730 8 times with a remainder of 226.
Record the quotient 8 as the next digit in the result. 
Result so far: 70839.5750798
Deduct 2504 from 2730 and we're left with 226.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2260, and continue the process.

Let's proceed to step 16:
The number 313 fits into 2260 7 times, leaving a remainder of 69.
Record the quotient 7 as the next digit in the result. 
Result so far: 70839.57507987
If we subtract 2191 from 2260, we get 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

In conclusion, the division gives 70839.57507987 with a balance of 6.9e-08.