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

On to step 1:
When dividing 3 by 87, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (4) from the dividend and append it to 3, then repeat: 34 / 87

Advancing to step 2:
87 goes into 34 0 times with a remainder of 34.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 34, we end up with 34.
Take the next digit (5) from the dividend and append it to 34, then repeat: 345 / 87

On to step 3:
The number 87 fits into 345 3 times, leaving a remainder of 84.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 261 from 345 leaves us with 84.
Append the next digit (0) from the dividend to 84 and continue with: 840 / 87

Let's proceed to step 4:
87 goes into 840 9 times with a remainder of 57.
Record the quotient 9 as the next digit in the result. 
Result so far: 39.0
If we subtract 783 from 840, we get 57.
Fetch the next digit (1) from the dividend, attach it to 57 and continue: 571 / 87

On to step 5:
87 can be fit into 571 6 times, resulting in a remainder of 49.
Use 6 as the next digit of our solution. 
Result so far: 396.0
Deduct 522 from 571 and we're left with 49.
Append the next digit (2) from the dividend to 49 and continue with: 492 / 87

Moving on to step 6:
492 divided by 87 is 5 with a remainder of 57.
The number 5 becomes the next digit in our result. 
Result so far: 3965.0
If we take 435 away from 492, we end up with 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

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

Advancing to step 8:
When dividing 480 by 87, we get 5 with a remainder of 45.
Record the quotient 5 as the next digit in the result. 
Result so far: 3965.65
If we subtract 435 from 480, we get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Advancing to step 9:
When dividing 450 by 87, we get 5 with a remainder of 15.
The next digit of our result is 5. 
Result so far: 3965.655
If we take 435 away from 450, we end up 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 quotient of the division is 3965.655, and the remainder is 0.0015.