We look at the division of 104840 by 40 
We're looking to find how many times 40 goes into 104840.

Advancing to step 1:
The number 40 fits into 1 0 times, leaving a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 40

Step 2:
10 divided by 40 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 10 after subtracting 0 from 10.
Take the next digit (4) from the dividend and append it to 10, then repeat: 104 / 40

On to step 3:
When dividing 104 by 40, we get 2 with a remainder of 24.
The next digit of our result is 2. 
Result so far: 2.0
If we take 80 away from 104, we end up with 24.
Fetch the next digit (8) from the dividend, attach it to 24 and continue: 248 / 40

Going ahead to step 4:
40 goes into 248 6 times with a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
If we subtract 240 from 248, we get 8.
Bring next digit (4) of the dividend behind the 8 and repeat the process: 84 / 40

Step 5:
When dividing 84 by 40, we get 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 262.0
If we subtract 80 from 84, we get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 40

Let's proceed to step 6:
40 divided by 40 is 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 2621.0
If we take 40 away from 40, 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 7:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 2621.0
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.

Advancing to step 8:
If we divide 0 by 40, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 2621.0
Subtract 0 from 0 to get 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 2621.0 with a remaining 0.0.