Let's divide 874148 by 40
Our goal is to divide 874148 by 40.

Going ahead to step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 40

Let's proceed to step 2:
40 goes into 87 2 times with a remainder of 7.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 80 from 87 leaves us with 7.
Take the next digit (4) from the dividend and append it to 7, then repeat: 74 / 40

Let's proceed to step 3:
When dividing 74 by 40, we get 1 with a remainder of 34.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Deduct 40 from 74 and we're left with 34.
Append the next digit (1) from the dividend to 34 and continue with: 341 / 40

Advancing to step 4:
40 goes into 341 8 times with a remainder of 21.
Use 8 as the next digit of our solution. 
Result so far: 218.0
Subtracting 320 from 341 leaves us with 21.
Fetch the next digit (4) from the dividend, attach it to 21 and continue: 214 / 40

Moving on to step 5:
214 divided by 40 is 5 with a remainder of 14.
Record the quotient 5 as the next digit in the result. 
Result so far: 2185.0
The remainder is 14 after subtracting 200 from 214.
Bring next digit (8) of the dividend behind the 14 and repeat the process: 148 / 40

Let's proceed to step 6:
If we divide 148 by 40, we get 3 and a remainder of 28.
Use 3 as the next digit of our solution. 
Result so far: 21853.0
Deduct 120 from 148 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 7:
When dividing 280 by 40, we get 7 with a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 21853.7
If we take 280 away from 280, 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.

On to step 8:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 21853.7
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.

Advancing to step 9:
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: 21853.7
If we subtract 0 from 0, we 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.

The quotient of the division is 21853.7, and the remainder is 0.0.