400040 ÷ 39 
We want to figure out the number of times 400040 can be divided by 39.

Let's proceed to step 1:
If we divide 4 by 39, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 39

Let's proceed to step 2:
The number 39 fits into 40 1 times, leaving a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 39 from 40, we get 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 39

Going ahead to step 3:
If we divide 10 by 39, we get 0 and a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
Deduct 0 from 10 and we're left with 10.
Grab the next digit (0) from the dividend, add it to 10, then carry on: 100 / 39

Let's proceed to step 4:
The number 39 fits into 100 2 times, leaving a remainder of 22.
Record the quotient 2 as the next digit in the result. 
Result so far: 102.0
Deduct 78 from 100 and we're left with 22.
Take the next digit (4) from the dividend and append it to 22, then repeat: 224 / 39

Let's proceed to step 5:
If we divide 224 by 39, we get 5 and a remainder of 29.
Write down 5 as next digit of the result. 
Result so far: 1025.0
Subtract 195 from 224 to get 29.
Bring next digit (0) of the dividend behind the 29 and repeat the process: 290 / 39

Advancing to step 6:
If we divide 290 by 39, we get 7 and a remainder of 17.
Use 7 as the next digit of our solution. 
Result so far: 10257.0
The remainder is 17 after subtracting 273 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 7:
The number 39 fits into 170 4 times, leaving a remainder of 14.
Write down 4 as next digit of the result. 
Result so far: 10257.4
Deduct 156 from 170 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 8:
39 goes into 140 3 times with a remainder of 23.
The next digit of our result is 3. 
Result so far: 10257.43
The remainder is 23 after subtracting 117 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 9:
230 divided by 39 is 5 with a remainder of 35.
The next digit of our result is 5. 
Result so far: 10257.435
Deduct 195 from 230 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 10:
If we divide 350 by 39, we get 8 and a remainder of 38.
Use 8 as the next digit of our solution. 
Result so far: 10257.4358
If we take 312 away from 350, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Moving on to step 11:
380 divided by 39 is 9 with a remainder of 29.
Write down 9 as next digit of the result. 
Result so far: 10257.43589
If we subtract 351 from 380, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 12:
39 can be fit into 290 7 times, resulting in a remainder of 17.
The number 7 becomes the next digit in our result. 
Result so far: 10257.435897
Subtract 273 from 290 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 13:
The number 39 fits into 170 4 times, leaving a remainder of 14.
Put 4 as the next digit of the answer. 
Result so far: 10257.4358974
If we take 156 away from 170, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 14:
If we divide 140 by 39, we get 3 and a remainder of 23.
Use 3 as the next digit of our solution. 
Result so far: 10257.43589743
The remainder is 23 after subtracting 117 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

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