We divide 13845842 by 40
Let's see how many times 40 fits into 13845842.

Let's proceed to step 1:
40 can be fit into 1 0 times, resulting in a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Fetch the next digit (3) from the dividend, attach it to 1 and continue: 13 / 40

Moving on to step 2:
The number 40 fits into 13 0 times, leaving a remainder of 13.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 13 to get 13.
Grab the next digit (8) from the dividend, add it to 13, then carry on: 138 / 40

Moving on to step 3:
138 divided by 40 is 3 with a remainder of 18.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Deduct 120 from 138 and we're left with 18.
Append the next digit (4) from the dividend to 18 and continue with: 184 / 40

Advancing to step 4:
If we divide 184 by 40, we get 4 and a remainder of 24.
The number 4 becomes the next digit in our result. 
Result so far: 34.0
Subtract 160 from 184 to get 24.
Fetch the next digit (5) from the dividend, attach it to 24 and continue: 245 / 40

Moving on to step 5:
40 can be fit into 245 6 times, resulting in a remainder of 5.
The number 6 becomes the next digit in our result. 
Result so far: 346.0
If we take 240 away from 245, we end up with 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 40

Advancing to step 6:
40 can be fit into 58 1 times, resulting in a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 3461.0
Subtract 40 from 58 to get 18.
Grab the next digit (4) from the dividend, add it to 18, then carry on: 184 / 40

On to step 7:
40 can be fit into 184 4 times, resulting in a remainder of 24.
Use 4 as the next digit of our solution. 
Result so far: 34614.0
Subtracting 160 from 184 leaves us with 24.
Grab the next digit (2) from the dividend, add it to 24, then carry on: 242 / 40

Step 8:
40 goes into 242 6 times with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 346146.0
The remainder is 2 after subtracting 240 from 242.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 9:
20 divided by 40 is 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 346146.0
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 10:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 346146.05
If we take 200 away from 200, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 346146.05
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 12:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 346146.05
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 346146.05 with a remaining 0.0.