Let's divide 9687851 by 542
We want to divide 9687851 by 542.

Let's proceed to step 1:
If we divide 9 by 542, we get 0 and a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Fetch the next digit (6) from the dividend, attach it to 9 and continue: 96 / 542

Going ahead to step 2:
If we divide 96 by 542, we get 0 and a remainder of 96.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 96, we get 96.
Take the next digit (8) from the dividend and append it to 96, then repeat: 968 / 542

Moving on to step 3:
If we divide 968 by 542, we get 1 and a remainder of 426.
The next digit of our result is 1. 
Result so far: 1.0
If we take 542 away from 968, we end up with 426.
Bring next digit (7) of the dividend behind the 426 and repeat the process: 4267 / 542

Moving on to step 4:
The number 542 fits into 4267 7 times, leaving a remainder of 473.
Use 7 as the next digit of our solution. 
Result so far: 17.0
If we take 3794 away from 4267, we end up with 473.
Include the next digit (8) from the dividend after 473, then repeat: 4738 / 542

Advancing to step 5:
When dividing 4738 by 542, we get 8 with a remainder of 402.
The next digit of our result is 8. 
Result so far: 178.0
Subtracting 4336 from 4738 leaves us with 402.
Bring next digit (5) of the dividend behind the 402 and repeat the process: 4025 / 542

Let's proceed to step 6:
542 goes into 4025 7 times with a remainder of 231.
Write down 7 as next digit of the result. 
Result so far: 1787.0
If we subtract 3794 from 4025, we get 231.
Take the next digit (1) from the dividend and append it to 231, then repeat: 2311 / 542

Going ahead to step 7:
When dividing 2311 by 542, we get 4 with a remainder of 143.
Record the quotient 4 as the next digit in the result. 
Result so far: 17874.0
Subtract 2168 from 2311 to get 143.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1430, and continue the process.

Going ahead to step 8:
When dividing 1430 by 542, we get 2 with a remainder of 346.
The number 2 becomes the next digit in our result. 
Result so far: 17874.2
Subtract 1084 from 1430 to get 346.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3460, and continue the process.

Step 9:
If we divide 3460 by 542, we get 6 and a remainder of 208.
Use 6 as the next digit of our solution. 
Result so far: 17874.26
Subtract 3252 from 3460 to get 208.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2080, and continue the process.

Let's proceed to step 10:
542 goes into 2080 3 times with a remainder of 454.
Write down 3 as next digit of the result. 
Result so far: 17874.263
Subtract 1626 from 2080 to get 454.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4540, and continue the process.

On to step 11:
When dividing 4540 by 542, we get 8 with a remainder of 204.
Put 8 as the next digit of the answer. 
Result so far: 17874.2638
Deduct 4336 from 4540 and we're left with 204.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2040, and continue the process.

Going ahead to step 12:
The number 542 fits into 2040 3 times, leaving a remainder of 414.
Use 3 as the next digit of our solution. 
Result so far: 17874.26383
If we take 1626 away from 2040, we end up with 414.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4140, and continue the process.

Step 13:
When dividing 4140 by 542, we get 7 with a remainder of 346.
Record the quotient 7 as the next digit in the result. 
Result so far: 17874.263837
Subtract 3794 from 4140 to get 346.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3460, and continue the process.

Step 14:
542 can be fit into 3460 6 times, resulting in a remainder of 208.
Write down 6 as next digit of the result. 
Result so far: 17874.2638376
If we take 3252 away from 3460, we end up with 208.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2080, and continue the process.

Advancing to step 15:
542 goes into 2080 3 times with a remainder of 454.
The number 3 becomes the next digit in our result. 
Result so far: 17874.26383763
Deduct 1626 from 2080 and we're left with 454.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4540, and continue the process.

The final outcome is 17874.26383763, with a leftover of 4.54e-07.