We're dividing 786874 by 54 
We want to divide 786874 by 54.

Going ahead to step 1:
7 divided by 54 is 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 54

Moving on to step 2:
54 can be fit into 78 1 times, resulting in a remainder of 24.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 54 from 78 and we're left with 24.
Take the next digit (6) from the dividend and append it to 24, then repeat: 246 / 54

Going ahead to step 3:
54 can be fit into 246 4 times, resulting in a remainder of 30.
Write down 4 as next digit of the result. 
Result so far: 14.0
Subtract 216 from 246 to get 30.
Take the next digit (8) from the dividend and append it to 30, then repeat: 308 / 54

Moving on to step 4:
54 goes into 308 5 times with a remainder of 38.
Record the quotient 5 as the next digit in the result. 
Result so far: 145.0
Deduct 270 from 308 and we're left with 38.
Append the next digit (7) from the dividend to 38 and continue with: 387 / 54

Advancing to step 5:
If we divide 387 by 54, we get 7 and a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 1457.0
The remainder is 9 after subtracting 378 from 387.
Bring next digit (4) of the dividend behind the 9 and repeat the process: 94 / 54

Moving on to step 6:
The number 54 fits into 94 1 times, leaving a remainder of 40.
Use 1 as the next digit of our solution. 
Result so far: 14571.0
If we subtract 54 from 94, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 7:
If we divide 400 by 54, we get 7 and a remainder of 22.
The next digit of our result is 7. 
Result so far: 14571.7
If we subtract 378 from 400, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 8:
54 goes into 220 4 times with a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 14571.74
Deduct 216 from 220 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 9:
If we divide 40 by 54, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 14571.74
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 10:
400 divided by 54 is 7 with a remainder of 22.
Put 7 as the next digit of the answer. 
Result so far: 14571.7407
Subtracting 378 from 400 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 11:
220 divided by 54 is 4 with a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 14571.74074
Subtract 216 from 220 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 12:
54 goes into 40 0 times with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 14571.74074
Deduct 0 from 40 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 13:
The number 54 fits into 400 7 times, leaving a remainder of 22.
Use 7 as the next digit of our solution. 
Result so far: 14571.7407407
Subtract 378 from 400 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 14:
If we divide 220 by 54, we get 4 and a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 14571.74074074
If we take 216 away from 220, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 14571.74074074 with a remainder of 4e-09.