40181715 divided by 313 
We're looking to find how many times 313 goes into 40181715.

Let's proceed to step 1:
313 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 313

On to step 2:
313 can be fit into 40 0 times, resulting in a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Bring next digit (1) of the dividend behind the 40 and repeat the process: 401 / 313

Advancing to step 3:
313 goes into 401 1 times with a remainder of 88.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 313 from 401, we get 88.
Bring next digit (8) of the dividend behind the 88 and repeat the process: 888 / 313

On to step 4:
The number 313 fits into 888 2 times, leaving a remainder of 262.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtracting 626 from 888 leaves us with 262.
Bring next digit (1) of the dividend behind the 262 and repeat the process: 2621 / 313

Advancing to step 5:
313 can be fit into 2621 8 times, resulting in a remainder of 117.
Put 8 as the next digit of the answer. 
Result so far: 128.0
Subtracting 2504 from 2621 leaves us with 117.
Grab the next digit (7) from the dividend, add it to 117, then carry on: 1177 / 313

Let's proceed to step 6:
If we divide 1177 by 313, we get 3 and a remainder of 238.
Record the quotient 3 as the next digit in the result. 
Result so far: 1283.0
Deduct 939 from 1177 and we're left with 238.
Fetch the next digit (1) from the dividend, attach it to 238 and continue: 2381 / 313

Moving on to step 7:
313 can be fit into 2381 7 times, resulting in a remainder of 190.
The next digit of our result is 7. 
Result so far: 12837.0
Subtracting 2191 from 2381 leaves us with 190.
Bring next digit (5) of the dividend behind the 190 and repeat the process: 1905 / 313

Step 8:
When dividing 1905 by 313, we get 6 with a remainder of 27.
The number 6 becomes the next digit in our result. 
Result so far: 128376.0
Subtracting 1878 from 1905 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 9:
When dividing 270 by 313, we get 0 with a remainder of 270.
Put 0 as the next digit of the answer. 
Result so far: 128376.0
Subtracting 0 from 270 leaves us with 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

Advancing to step 10:
The number 313 fits into 2700 8 times, leaving a remainder of 196.
Record the quotient 8 as the next digit in the result. 
Result so far: 128376.08
Subtract 2504 from 2700 to get 196.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1960, and continue the process.

Advancing to step 11:
The number 313 fits into 1960 6 times, leaving a remainder of 82.
Record the quotient 6 as the next digit in the result. 
Result so far: 128376.086
If we subtract 1878 from 1960, we get 82.
Since there are no more digits in the dividend, we add a zero to the remainder making it 820, and continue the process.

Going ahead to step 12:
313 goes into 820 2 times with a remainder of 194.
The number 2 becomes the next digit in our result. 
Result so far: 128376.0862
Subtracting 626 from 820 leaves us with 194.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1940, and continue the process.

Let's proceed to step 13:
When dividing 1940 by 313, we get 6 with a remainder of 62.
Use 6 as the next digit of our solution. 
Result so far: 128376.08626
Subtracting 1878 from 1940 leaves us with 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

On to step 14:
If we divide 620 by 313, we get 1 and a remainder of 307.
Write down 1 as next digit of the result. 
Result so far: 128376.086261
Subtracting 313 from 620 leaves us with 307.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3070, and continue the process.

Moving on to step 15:
313 can be fit into 3070 9 times, resulting in a remainder of 253.
The number 9 becomes the next digit in our result. 
Result so far: 128376.0862619
If we take 2817 away from 3070, we end up with 253.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2530, and continue the process.

Going ahead to step 16:
The number 313 fits into 2530 8 times, leaving a remainder of 26.
Put 8 as the next digit of the answer. 
Result so far: 128376.08626198
Subtracting 2504 from 2530 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

The quotient of the division is 128376.08626198, and the remainder is 2.6e-08.