40501396 divided by 39 
Our goal is to divide 40501396 by 39.

Advancing to step 1:
The number 39 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 39

Step 2:
The number 39 fits into 40 1 times, leaving a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 39 from 40 leaves us with 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 39

Going ahead to step 3:
15 divided by 39 is 0 with a remainder of 15.
The next digit of our result is 0. 
Result so far: 10.0
Subtracting 0 from 15 leaves us with 15.
Bring next digit (0) of the dividend behind the 15 and repeat the process: 150 / 39

Step 4:
39 can be fit into 150 3 times, resulting in a remainder of 33.
The number 3 becomes the next digit in our result. 
Result so far: 103.0
The remainder is 33 after subtracting 117 from 150.
Bring next digit (1) of the dividend behind the 33 and repeat the process: 331 / 39

Let's proceed to step 5:
39 goes into 331 8 times with a remainder of 19.
The number 8 becomes the next digit in our result. 
Result so far: 1038.0
Deduct 312 from 331 and we're left with 19.
Bring next digit (3) of the dividend behind the 19 and repeat the process: 193 / 39

Let's proceed to step 6:
39 can be fit into 193 4 times, resulting in a remainder of 37.
The number 4 becomes the next digit in our result. 
Result so far: 10384.0
Deduct 156 from 193 and we're left with 37.
Include the next digit (9) from the dividend after 37, then repeat: 379 / 39

Step 7:
If we divide 379 by 39, we get 9 and a remainder of 28.
Put 9 as the next digit of the answer. 
Result so far: 103849.0
The remainder is 28 after subtracting 351 from 379.
Include the next digit (6) from the dividend after 28, then repeat: 286 / 39

Let's proceed to step 8:
286 divided by 39 is 7 with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 1038497.0
Subtract 273 from 286 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 9:
If we divide 130 by 39, we get 3 and a remainder of 13.
Use 3 as the next digit of our solution. 
Result so far: 1038497.3
If we subtract 117 from 130, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 10:
If we divide 130 by 39, we get 3 and a remainder of 13.
Use 3 as the next digit of our solution. 
Result so far: 1038497.33
Subtract 117 from 130 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 1038497.33 and a remainder of 0.013.