Let's divide 40476 by 87
Our goal is to divide 40476 by 87.

Advancing to step 1:
4 divided by 87 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 87

Step 2:
When dividing 40 by 87, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Include the next digit (4) from the dividend after 40, then repeat: 404 / 87

Advancing to step 3:
When dividing 404 by 87, we get 4 with a remainder of 56.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Deduct 348 from 404 and we're left with 56.
Include the next digit (7) from the dividend after 56, then repeat: 567 / 87

Let's proceed to step 4:
If we divide 567 by 87, we get 6 and a remainder of 45.
Write down 6 as next digit of the result. 
Result so far: 46.0
Subtracting 522 from 567 leaves us with 45.
Grab the next digit (6) from the dividend, add it to 45, then carry on: 456 / 87

Let's proceed to step 5:
87 goes into 456 5 times with a remainder of 21.
Use 5 as the next digit of our solution. 
Result so far: 465.0
If we take 435 away from 456, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 6:
210 divided by 87 is 2 with a remainder of 36.
Write down 2 as next digit of the result. 
Result so far: 465.2
Subtracting 174 from 210 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 7:
360 divided by 87 is 4 with a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 465.24
If we subtract 348 from 360, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 8:
When dividing 120 by 87, we get 1 with a remainder of 33.
Write down 1 as next digit of the result. 
Result so far: 465.241
The remainder is 33 after subtracting 87 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 9:
The number 87 fits into 330 3 times, leaving a remainder of 69.
Record the quotient 3 as the next digit in the result. 
Result so far: 465.2413
If we subtract 261 from 330, we get 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

Advancing to step 10:
690 divided by 87 is 7 with a remainder of 81.
Use 7 as the next digit of our solution. 
Result so far: 465.24137
If we take 609 away from 690, we end up with 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 810, and continue the process.

Moving on to step 11:
If we divide 810 by 87, we get 9 and a remainder of 27.
Use 9 as the next digit of our solution. 
Result so far: 465.241379
Subtract 783 from 810 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 12:
When dividing 270 by 87, we get 3 with a remainder of 9.
Put 3 as the next digit of the answer. 
Result so far: 465.2413793
The remainder is 9 after subtracting 261 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 13:
When dividing 90 by 87, we get 1 with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 465.24137931
Subtracting 87 from 90 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

In conclusion, the division gives 465.24137931 with a balance of 3e-09.