We're dividing 40997106 by 13 
Let's see how many times 13 fits into 40997106.

Step 1:
The number 13 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 13

Step 2:
The number 13 fits into 40 3 times, leaving a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtracting 39 from 40 leaves us with 1.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 13

Advancing to step 3:
When dividing 19 by 13, we get 1 with a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 31.0
Subtract 13 from 19 to get 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 13

Advancing to step 4:
13 can be fit into 69 5 times, resulting in a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 315.0
If we subtract 65 from 69, we get 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 13

Step 5:
When dividing 47 by 13, we get 3 with a remainder of 8.
Use 3 as the next digit of our solution. 
Result so far: 3153.0
The remainder is 8 after subtracting 39 from 47.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 13

Step 6:
The number 13 fits into 81 6 times, leaving a remainder of 3.
Use 6 as the next digit of our solution. 
Result so far: 31536.0
Subtract 78 from 81 to get 3.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 13

Advancing to step 7:
If we divide 30 by 13, we get 2 and a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 315362.0
Subtracting 26 from 30 leaves us with 4.
Append the next digit (6) from the dividend to 4 and continue with: 46 / 13

Advancing to step 8:
46 divided by 13 is 3 with a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 3153623.0
If we subtract 39 from 46, we 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.

Step 9:
70 divided by 13 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 3153623.5
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 10:
The number 13 fits into 50 3 times, leaving a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 3153623.53
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.

On to step 11:
13 can be fit into 110 8 times, resulting in a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 3153623.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.

Step 12:
When dividing 60 by 13, we get 4 with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 3153623.5384
The remainder is 8 after subtracting 52 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 13:
13 goes into 80 6 times with a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 3153623.53846
Subtracting 78 from 80 leaves us 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.

On to step 14:
20 divided by 13 is 1 with a remainder of 7.
The next digit of our result is 1. 
Result so far: 3153623.538461
The remainder is 7 after subtracting 13 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 15:
If we divide 70 by 13, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 3153623.5384615
Subtracting 65 from 70 leaves us 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.

Step 16:
50 divided by 13 is 3 with a remainder of 11.
Use 3 as the next digit of our solution. 
Result so far: 3153623.53846153
Subtract 39 from 50 to 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.

After the division, we end up with 3153623.53846153 and a remainder of 1.1e-08.