We're dividing 87851074 by 123 
We're looking to find how many times 123 goes into 87851074.

Going ahead to step 1:
123 goes into 8 0 times with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 123

Moving on to step 2:
123 can be fit into 87 0 times, resulting in a remainder of 87.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 87 to get 87.
Grab the next digit (8) from the dividend, add it to 87, then carry on: 878 / 123

Going ahead to step 3:
123 goes into 878 7 times with a remainder of 17.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Deduct 861 from 878 and we're left with 17.
Include the next digit (5) from the dividend after 17, then repeat: 175 / 123

Going ahead to step 4:
123 goes into 175 1 times with a remainder of 52.
Use 1 as the next digit of our solution. 
Result so far: 71.0
The remainder is 52 after subtracting 123 from 175.
Grab the next digit (1) from the dividend, add it to 52, then carry on: 521 / 123

Advancing to step 5:
521 divided by 123 is 4 with a remainder of 29.
The number 4 becomes the next digit in our result. 
Result so far: 714.0
If we take 492 away from 521, we end up with 29.
Grab the next digit (0) from the dividend, add it to 29, then carry on: 290 / 123

Moving on to step 6:
The number 123 fits into 290 2 times, leaving a remainder of 44.
Use 2 as the next digit of our solution. 
Result so far: 7142.0
If we subtract 246 from 290, we get 44.
Grab the next digit (7) from the dividend, add it to 44, then carry on: 447 / 123

Step 7:
The number 123 fits into 447 3 times, leaving a remainder of 78.
Record the quotient 3 as the next digit in the result. 
Result so far: 71423.0
Subtract 369 from 447 to get 78.
Bring next digit (4) of the dividend behind the 78 and repeat the process: 784 / 123

On to step 8:
123 can be fit into 784 6 times, resulting in a remainder of 46.
Use 6 as the next digit of our solution. 
Result so far: 714236.0
Deduct 738 from 784 and we're left with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Moving on to step 9:
460 divided by 123 is 3 with a remainder of 91.
Put 3 as the next digit of the answer. 
Result so far: 714236.3
Subtracting 369 from 460 leaves us with 91.
Since there are no more digits in the dividend, we add a zero to the remainder making it 910, and continue the process.

Let's proceed to step 10:
910 divided by 123 is 7 with a remainder of 49.
The number 7 becomes the next digit in our result. 
Result so far: 714236.37
If we take 861 away from 910, we end up with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

On to step 11:
123 can be fit into 490 3 times, resulting in a remainder of 121.
The next digit of our result is 3. 
Result so far: 714236.373
If we take 369 away from 490, we end up with 121.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1210, and continue the process.

Moving on to step 12:
123 can be fit into 1210 9 times, resulting in a remainder of 103.
The next digit of our result is 9. 
Result so far: 714236.3739
Subtracting 1107 from 1210 leaves us with 103.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1030, and continue the process.

Advancing to step 13:
When dividing 1030 by 123, we get 8 with a remainder of 46.
Use 8 as the next digit of our solution. 
Result so far: 714236.37398
Deduct 984 from 1030 and we're left with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Advancing to step 14:
The number 123 fits into 460 3 times, leaving a remainder of 91.
The number 3 becomes the next digit in our result. 
Result so far: 714236.373983
Deduct 369 from 460 and we're left with 91.
Since there are no more digits in the dividend, we add a zero to the remainder making it 910, and continue the process.

Let's proceed to step 15:
When dividing 910 by 123, we get 7 with a remainder of 49.
Write down 7 as next digit of the result. 
Result so far: 714236.3739837
Subtracting 861 from 910 leaves us with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Moving on to step 16:
When dividing 490 by 123, we get 3 with a remainder of 121.
Write down 3 as next digit of the result. 
Result so far: 714236.37398373
Subtracting 369 from 490 leaves us with 121.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1210, and continue the process.

The quotient of the division is 714236.37398373, and the remainder is 1.21e-07.