We look at the division of 495087 by 87 
We're looking to find how many times 87 goes into 495087.

Advancing to step 1:
When dividing 4 by 87, we get 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.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 87

Advancing to step 2:
87 goes into 49 0 times with a remainder of 49.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 49 to get 49.
Fetch the next digit (5) from the dividend, attach it to 49 and continue: 495 / 87

Advancing to step 3:
495 divided by 87 is 5 with a remainder of 60.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 435 away from 495, we end up with 60.
Fetch the next digit (0) from the dividend, attach it to 60 and continue: 600 / 87

Let's proceed to step 4:
87 can be fit into 600 6 times, resulting in a remainder of 78.
Write down 6 as next digit of the result. 
Result so far: 56.0
Subtract 522 from 600 to get 78.
Bring next digit (8) of the dividend behind the 78 and repeat the process: 788 / 87

Step 5:
788 divided by 87 is 9 with a remainder of 5.
Use 9 as the next digit of our solution. 
Result so far: 569.0
Subtract 783 from 788 to get 5.
Bring next digit (7) of the dividend behind the 5 and repeat the process: 57 / 87

Step 6:
57 divided by 87 is 0 with a remainder of 57.
Use 0 as the next digit of our solution. 
Result so far: 5690.0
If we subtract 0 from 57, we get 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

Step 7:
87 can be fit into 570 6 times, resulting in a remainder of 48.
Put 6 as the next digit of the answer. 
Result so far: 5690.6
Subtracting 522 from 570 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Going ahead to step 8:
The number 87 fits into 480 5 times, leaving a remainder of 45.
Put 5 as the next digit of the answer. 
Result so far: 5690.65
Deduct 435 from 480 and we're left with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

On to step 9:
450 divided by 87 is 5 with a remainder of 15.
The next digit of our result is 5. 
Result so far: 5690.655
Subtracting 435 from 450 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The final outcome is 5690.655, with a leftover of 0.0015.