Let's divide 145174 by 87
Let's see how many times 87 fits into 145174.

Going ahead to step 1:
If we divide 1 by 87, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 87

Going ahead to step 2:
When dividing 14 by 87, we get 0 with a remainder of 14.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 14 after subtracting 0 from 14.
Take the next digit (5) from the dividend and append it to 14, then repeat: 145 / 87

Let's proceed to step 3:
87 goes into 145 1 times with a remainder of 58.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 87 from 145 to get 58.
Fetch the next digit (1) from the dividend, attach it to 58 and continue: 581 / 87

Advancing to step 4:
If we divide 581 by 87, we get 6 and a remainder of 59.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
Deduct 522 from 581 and we're left with 59.
Take the next digit (7) from the dividend and append it to 59, then repeat: 597 / 87

Going ahead to step 5:
If we divide 597 by 87, we get 6 and a remainder of 75.
Record the quotient 6 as the next digit in the result. 
Result so far: 166.0
Subtract 522 from 597 to get 75.
Grab the next digit (4) from the dividend, add it to 75, then carry on: 754 / 87

Advancing to step 6:
87 goes into 754 8 times with a remainder of 58.
Put 8 as the next digit of the answer. 
Result so far: 1668.0
If we take 696 away from 754, we end up with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Advancing to step 7:
When dividing 580 by 87, we get 6 with a remainder of 58.
Write down 6 as next digit of the result. 
Result so far: 1668.6
The remainder is 58 after subtracting 522 from 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Going ahead to step 8:
The number 87 fits into 580 6 times, leaving a remainder of 58.
Record the quotient 6 as the next digit in the result. 
Result so far: 1668.66
If we subtract 522 from 580, we get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

The quotient of the division is 1668.66, and the remainder is 0.058.