We're dividing 523170 by 87 
We want to figure out the number of times 523170 can be divided by 87.

Moving on to step 1:
If we divide 5 by 87, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (2) from the dividend and append it to 5, then repeat: 52 / 87

On to step 2:
52 divided by 87 is 0 with a remainder of 52.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 52 to get 52.
Append the next digit (3) from the dividend to 52 and continue with: 523 / 87

On to step 3:
87 goes into 523 6 times with a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 6.0
Subtract 522 from 523 to get 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 87

Moving on to step 4:
The number 87 fits into 11 0 times, leaving a remainder of 11.
Put 0 as the next digit of the answer. 
Result so far: 60.0
Deduct 0 from 11 and we're left with 11.
Bring next digit (7) of the dividend behind the 11 and repeat the process: 117 / 87

Let's proceed to step 5:
The number 87 fits into 117 1 times, leaving a remainder of 30.
Use 1 as the next digit of our solution. 
Result so far: 601.0
Subtracting 87 from 117 leaves us with 30.
Append the next digit (0) from the dividend to 30 and continue with: 300 / 87

On to step 6:
87 can be fit into 300 3 times, resulting in a remainder of 39.
The next digit of our result is 3. 
Result so far: 6013.0
Subtract 261 from 300 to get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Step 7:
The number 87 fits into 390 4 times, leaving a remainder of 42.
The next digit of our result is 4. 
Result so far: 6013.4
If we subtract 348 from 390, we get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

On to step 8:
87 goes into 420 4 times with a remainder of 72.
The number 4 becomes the next digit in our result. 
Result so far: 6013.44
If we subtract 348 from 420, we get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

The quotient of the division is 6013.44, and the remainder is 0.072.