We divide 5091983 by 789
The aim is to understand the frequency of 789 in 5091983.

On to step 1:
789 can be fit into 5 0 times, resulting in 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 / 789

On to step 2:
789 can be fit into 50 0 times, resulting in a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Append the next digit (9) from the dividend to 50 and continue with: 509 / 789

Going ahead to step 3:
When dividing 509 by 789, we get 0 with a remainder of 509.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 509, we end up with 509.
Bring next digit (1) of the dividend behind the 509 and repeat the process: 5091 / 789

On to step 4:
When dividing 5091 by 789, we get 6 with a remainder of 357.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
If we take 4734 away from 5091, we end up with 357.
Fetch the next digit (9) from the dividend, attach it to 357 and continue: 3579 / 789

On to step 5:
If we divide 3579 by 789, we get 4 and a remainder of 423.
Put 4 as the next digit of the answer. 
Result so far: 64.0
Subtract 3156 from 3579 to get 423.
Include the next digit (8) from the dividend after 423, then repeat: 4238 / 789

Step 6:
4238 divided by 789 is 5 with a remainder of 293.
Put 5 as the next digit of the answer. 
Result so far: 645.0
Subtract 3945 from 4238 to get 293.
Grab the next digit (3) from the dividend, add it to 293, then carry on: 2933 / 789

On to step 7:
If we divide 2933 by 789, we get 3 and a remainder of 566.
The next digit of our result is 3. 
Result so far: 6453.0
Subtract 2367 from 2933 to get 566.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5660, and continue the process.

Advancing to step 8:
789 goes into 5660 7 times with a remainder of 137.
The next digit of our result is 7. 
Result so far: 6453.7
Deduct 5523 from 5660 and we're left with 137.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1370, and continue the process.

Let's proceed to step 9:
1370 divided by 789 is 1 with a remainder of 581.
Write down 1 as next digit of the result. 
Result so far: 6453.71
Subtracting 789 from 1370 leaves us with 581.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5810, and continue the process.

Let's proceed to step 10:
789 can be fit into 5810 7 times, resulting in a remainder of 287.
Use 7 as the next digit of our solution. 
Result so far: 6453.717
If we subtract 5523 from 5810, we get 287.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2870, and continue the process.

On to step 11:
If we divide 2870 by 789, we get 3 and a remainder of 503.
The number 3 becomes the next digit in our result. 
Result so far: 6453.7173
The remainder is 503 after subtracting 2367 from 2870.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5030, and continue the process.

Let's proceed to step 12:
The number 789 fits into 5030 6 times, leaving a remainder of 296.
Use 6 as the next digit of our solution. 
Result so far: 6453.71736
Subtracting 4734 from 5030 leaves us with 296.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2960, and continue the process.

On to step 13:
789 goes into 2960 3 times with a remainder of 593.
Put 3 as the next digit of the answer. 
Result so far: 6453.717363
If we take 2367 away from 2960, we end up with 593.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5930, and continue the process.

On to step 14:
The number 789 fits into 5930 7 times, leaving a remainder of 407.
Write down 7 as next digit of the result. 
Result so far: 6453.7173637
If we take 5523 away from 5930, we end up with 407.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4070, and continue the process.

Moving on to step 15:
4070 divided by 789 is 5 with a remainder of 125.
Write down 5 as next digit of the result. 
Result so far: 6453.71736375
If we take 3945 away from 4070, we end up with 125.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1250, and continue the process.

After the division, we end up with 6453.71736375 and a remainder of 1.25e-07.