Let's divide 376866 by 40
We want to figure out the number of times 376866 can be divided by 40.

Going ahead to step 1:
When dividing 3 by 40, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 40

Going ahead to step 2:
40 can be fit into 37 0 times, resulting in a remainder of 37.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 37, we end up with 37.
Fetch the next digit (6) from the dividend, attach it to 37 and continue: 376 / 40

Moving on to step 3:
376 divided by 40 is 9 with a remainder of 16.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Subtract 360 from 376 to get 16.
Append the next digit (8) from the dividend to 16 and continue with: 168 / 40

Let's proceed to step 4:
168 divided by 40 is 4 with a remainder of 8.
The next digit of our result is 4. 
Result so far: 94.0
Subtract 160 from 168 to get 8.
Fetch the next digit (6) from the dividend, attach it to 8 and continue: 86 / 40

Let's proceed to step 5:
40 can be fit into 86 2 times, resulting in a remainder of 6.
The next digit of our result is 2. 
Result so far: 942.0
If we subtract 80 from 86, we get 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 40

Moving on to step 6:
40 can be fit into 66 1 times, resulting in a remainder of 26.
The number 1 becomes the next digit in our result. 
Result so far: 9421.0
Subtract 40 from 66 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 7:
If we divide 260 by 40, we get 6 and a remainder of 20.
The number 6 becomes the next digit in our result. 
Result so far: 9421.6
Subtracting 240 from 260 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 9421.65
If we subtract 200 from 200, 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.

Advancing to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 9421.65
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.

Step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 9421.65
The remainder is 0 after subtracting 0 from 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 9421.65, and the remainder is 0.0.