Let's divide 40350 by 13
Our goal is to divide 40350 by 13.

Going ahead to step 1:
The number 13 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 13

On to step 2:
13 goes into 40 3 times with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 3.0
The remainder is 1 after subtracting 39 from 40.
Bring next digit (3) of the dividend behind the 1 and repeat the process: 13 / 13

Let's proceed to step 3:
If we divide 13 by 13, we get 1 and a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 31.0
The remainder is 0 after subtracting 13 from 13.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 13

Moving on to step 4:
5 divided by 13 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 310.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 13

Step 5:
13 goes into 50 3 times with a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 3103.0
If we subtract 39 from 50, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 6:
13 goes into 110 8 times with a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 3103.8
The remainder is 6 after subtracting 104 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 7:
If we divide 60 by 13, we get 4 and a remainder of 8.
Write down 4 as next digit of the result. 
Result so far: 3103.84
If we take 52 away from 60, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 8:
13 can be fit into 80 6 times, resulting in a remainder of 2.
The next digit of our result is 6. 
Result so far: 3103.846
If we take 78 away from 80, we end up 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.

Advancing to step 9:
If we divide 20 by 13, we get 1 and a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 3103.8461
Deduct 13 from 20 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 10:
13 can be fit into 70 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 3103.84615
Subtract 65 from 70 to 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.

On to step 11:
13 goes into 50 3 times with a remainder of 11.
The number 3 becomes the next digit in our result. 
Result so far: 3103.846153
If we subtract 39 from 50, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 12:
If we divide 110 by 13, we get 8 and a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 3103.8461538
The remainder is 6 after subtracting 104 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 13:
60 divided by 13 is 4 with a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 3103.84615384
Subtracting 52 from 60 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 3103.84615384, with a leftover of 8e-09.