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

Let's proceed to step 1:
40 can be fit into 3 0 times, resulting in 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.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 40

On to step 2:
40 goes into 36 0 times with a remainder of 36.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 36 after subtracting 0 from 36.
Bring next digit (6) of the dividend behind the 36 and repeat the process: 366 / 40

Step 3:
If we divide 366 by 40, we get 9 and a remainder of 6.
Use 9 as the next digit of our solution. 
Result so far: 9.0
If we take 360 away from 366, we end up with 6.
Grab the next digit (8) from the dividend, add it to 6, then carry on: 68 / 40

On to step 4:
40 goes into 68 1 times with a remainder of 28.
Use 1 as the next digit of our solution. 
Result so far: 91.0
The remainder is 28 after subtracting 40 from 68.
Include the next digit (0) from the dividend after 28, then repeat: 280 / 40

Going ahead to step 5:
280 divided by 40 is 7 with a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 917.0
If we take 280 away from 280, we end up with 0.
Include the next digit (2) from the dividend after 0, then repeat: 2 / 40

Step 6:
40 can be fit into 2 0 times, resulting in a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 9170.0
The remainder is 2 after subtracting 0 from 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
40 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 9170.0
Subtracting 0 from 20 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.

On to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 9170.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.

Going ahead to step 9:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 9170.05
Deduct 0 from 0 and we're left 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 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 9170.05
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.

Our division results in 9170.05 with a remaining 0.0.