We look at the division of 5038746 by 654 
We're looking to find how many times 654 goes into 5038746.

Let's proceed to step 1:
When dividing 5 by 654, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 654

Going ahead to step 2:
If we divide 50 by 654, we get 0 and a remainder of 50.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 50 after subtracting 0 from 50.
Include the next digit (3) from the dividend after 50, then repeat: 503 / 654

Step 3:
If we divide 503 by 654, we get 0 and a remainder of 503.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 503, we get 503.
Grab the next digit (8) from the dividend, add it to 503, then carry on: 5038 / 654

Advancing to step 4:
654 goes into 5038 7 times with a remainder of 460.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Deduct 4578 from 5038 and we're left with 460.
Append the next digit (7) from the dividend to 460 and continue with: 4607 / 654

Advancing to step 5:
When dividing 4607 by 654, we get 7 with a remainder of 29.
Put 7 as the next digit of the answer. 
Result so far: 77.0
If we subtract 4578 from 4607, we get 29.
Fetch the next digit (4) from the dividend, attach it to 29 and continue: 294 / 654

Going ahead to step 6:
The number 654 fits into 294 0 times, leaving a remainder of 294.
Write down 0 as next digit of the result. 
Result so far: 770.0
If we subtract 0 from 294, we get 294.
Fetch the next digit (6) from the dividend, attach it to 294 and continue: 2946 / 654

Advancing to step 7:
654 goes into 2946 4 times with a remainder of 330.
The next digit of our result is 4. 
Result so far: 7704.0
If we take 2616 away from 2946, we end up with 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3300, and continue the process.

Moving on to step 8:
The number 654 fits into 3300 5 times, leaving a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 7704.5
Deduct 3270 from 3300 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 9:
When dividing 300 by 654, we get 0 with a remainder of 300.
The number 0 becomes the next digit in our result. 
Result so far: 7704.5
Subtracting 0 from 300 leaves us with 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

Going ahead to step 10:
654 can be fit into 3000 4 times, resulting in a remainder of 384.
The number 4 becomes the next digit in our result. 
Result so far: 7704.504
If we subtract 2616 from 3000, we get 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Step 11:
3840 divided by 654 is 5 with a remainder of 570.
Write down 5 as next digit of the result. 
Result so far: 7704.5045
If we subtract 3270 from 3840, we get 570.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5700, and continue the process.

Step 12:
5700 divided by 654 is 8 with a remainder of 468.
Put 8 as the next digit of the answer. 
Result so far: 7704.50458
Subtract 5232 from 5700 to get 468.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4680, and continue the process.

On to step 13:
The number 654 fits into 4680 7 times, leaving a remainder of 102.
The number 7 becomes the next digit in our result. 
Result so far: 7704.504587
Subtract 4578 from 4680 to get 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Step 14:
1020 divided by 654 is 1 with a remainder of 366.
The next digit of our result is 1. 
Result so far: 7704.5045871
Subtract 654 from 1020 to get 366.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3660, and continue the process.

Let's proceed to step 15:
When dividing 3660 by 654, we get 5 with a remainder of 390.
The next digit of our result is 5. 
Result so far: 7704.50458715
Deduct 3270 from 3660 and we're left with 390.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3900, and continue the process.

The quotient of the division is 7704.50458715, and the remainder is 3.9e-07.