We're dividing 40242 by 13 
Our goal is to divide 40242 by 13.

Advancing to step 1:
If we divide 4 by 13, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 13

On to step 2:
40 divided by 13 is 3 with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Subtract 39 from 40 to get 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 13

Going ahead to step 3:
13 can be fit into 12 0 times, resulting in a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 30.0
Subtract 0 from 12 to get 12.
Include the next digit (4) from the dividend after 12, then repeat: 124 / 13

Going ahead to step 4:
The number 13 fits into 124 9 times, leaving a remainder of 7.
Write down 9 as next digit of the result. 
Result so far: 309.0
Subtract 117 from 124 to get 7.
Append the next digit (2) from the dividend to 7 and continue with: 72 / 13

Step 5:
When dividing 72 by 13, we get 5 with a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 3095.0
Subtract 65 from 72 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 6:
When dividing 70 by 13, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 3095.5
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.

Step 7:
50 divided by 13 is 3 with a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 3095.53
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.

Moving on to step 8:
The number 13 fits into 110 8 times, leaving a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 3095.538
Subtracting 104 from 110 leaves us 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:
60 divided by 13 is 4 with a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 3095.5384
If we subtract 52 from 60, we get 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 10:
80 divided by 13 is 6 with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 3095.53846
The remainder is 2 after subtracting 78 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 11:
When dividing 20 by 13, we get 1 with a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 3095.538461
Subtracting 13 from 20 leaves us 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.

Let's proceed to step 12:
13 can be fit into 70 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 3095.5384615
The remainder is 5 after subtracting 65 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 13:
When dividing 50 by 13, we get 3 with a remainder of 11.
Use 3 as the next digit of our solution. 
Result so far: 3095.53846153
Deduct 39 from 50 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Our division results in 3095.53846153 with a remaining 1.1e-08.