87376889 divided by 40 
Let's see how many times 40 fits into 87376889.

Moving on to step 1:
40 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Grab the next digit (7) from the dividend, add it to 8, then carry on: 87 / 40

Moving on to step 2:
40 goes into 87 2 times with a remainder of 7.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 80 from 87, we get 7.
Take the next digit (3) from the dividend and append it to 7, then repeat: 73 / 40

On to step 3:
40 can be fit into 73 1 times, resulting in a remainder of 33.
Use 1 as the next digit of our solution. 
Result so far: 21.0
The remainder is 33 after subtracting 40 from 73.
Append the next digit (7) from the dividend to 33 and continue with: 337 / 40

On to step 4:
If we divide 337 by 40, we get 8 and a remainder of 17.
Write down 8 as next digit of the result. 
Result so far: 218.0
The remainder is 17 after subtracting 320 from 337.
Take the next digit (6) from the dividend and append it to 17, then repeat: 176 / 40

Going ahead to step 5:
40 can be fit into 176 4 times, resulting in a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 2184.0
Subtracting 160 from 176 leaves us with 16.
Bring next digit (8) of the dividend behind the 16 and repeat the process: 168 / 40

Moving on to step 6:
If we divide 168 by 40, we get 4 and a remainder of 8.
The next digit of our result is 4. 
Result so far: 21844.0
If we subtract 160 from 168, we get 8.
Bring next digit (8) of the dividend behind the 8 and repeat the process: 88 / 40

Going ahead to step 7:
40 can be fit into 88 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 218442.0
Subtracting 80 from 88 leaves us with 8.
Append the next digit (9) from the dividend to 8 and continue with: 89 / 40

Going ahead to step 8:
If we divide 89 by 40, we get 2 and a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 2184422.0
Subtracting 80 from 89 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 9:
40 goes into 90 2 times with a remainder of 10.
Record the quotient 2 as the next digit in the result. 
Result so far: 2184422.2
If we take 80 away from 90, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 10:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 2184422.22
Subtract 80 from 100 to 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.

The quotient of the division is 2184422.22, and the remainder is 0.02.