We look at the division of 50790845 by 940 
The aim is to understand the frequency of 940 in 50790845.

Going ahead to step 1:
When dividing 5 by 940, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 940

Step 2:
The number 940 fits into 50 0 times, leaving a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Take the next digit (7) from the dividend and append it to 50, then repeat: 507 / 940

Advancing to step 3:
The number 940 fits into 507 0 times, leaving a remainder of 507.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 507 and we're left with 507.
Bring next digit (9) of the dividend behind the 507 and repeat the process: 5079 / 940

On to step 4:
940 goes into 5079 5 times with a remainder of 379.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Deduct 4700 from 5079 and we're left with 379.
Bring next digit (0) of the dividend behind the 379 and repeat the process: 3790 / 940

Going ahead to step 5:
3790 divided by 940 is 4 with a remainder of 30.
The next digit of our result is 4. 
Result so far: 54.0
Deduct 3760 from 3790 and we're left with 30.
Append the next digit (8) from the dividend to 30 and continue with: 308 / 940

Going ahead to step 6:
940 goes into 308 0 times with a remainder of 308.
The number 0 becomes the next digit in our result. 
Result so far: 540.0
If we take 0 away from 308, we end up with 308.
Grab the next digit (4) from the dividend, add it to 308, then carry on: 3084 / 940

Step 7:
940 can be fit into 3084 3 times, resulting in a remainder of 264.
The number 3 becomes the next digit in our result. 
Result so far: 5403.0
Subtract 2820 from 3084 to get 264.
Append the next digit (5) from the dividend to 264 and continue with: 2645 / 940

Moving on to step 8:
When dividing 2645 by 940, we get 2 with a remainder of 765.
Record the quotient 2 as the next digit in the result. 
Result so far: 54032.0
Subtracting 1880 from 2645 leaves us with 765.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7650, and continue the process.

On to step 9:
The number 940 fits into 7650 8 times, leaving a remainder of 130.
The next digit of our result is 8. 
Result so far: 54032.8
If we take 7520 away from 7650, we end up with 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Let's proceed to step 10:
1300 divided by 940 is 1 with a remainder of 360.
Use 1 as the next digit of our solution. 
Result so far: 54032.81
If we subtract 940 from 1300, we get 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

On to step 11:
3600 divided by 940 is 3 with a remainder of 780.
The number 3 becomes the next digit in our result. 
Result so far: 54032.813
Subtract 2820 from 3600 to get 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7800, and continue the process.

Let's proceed to step 12:
The number 940 fits into 7800 8 times, leaving a remainder of 280.
Use 8 as the next digit of our solution. 
Result so far: 54032.8138
Deduct 7520 from 7800 and we're left with 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Going ahead to step 13:
2800 divided by 940 is 2 with a remainder of 920.
Record the quotient 2 as the next digit in the result. 
Result so far: 54032.81382
Deduct 1880 from 2800 and we're left with 920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9200, and continue the process.

Step 14:
940 can be fit into 9200 9 times, resulting in a remainder of 740.
Put 9 as the next digit of the answer. 
Result so far: 54032.813829
Subtracting 8460 from 9200 leaves us with 740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7400, and continue the process.

Going ahead to step 15:
940 can be fit into 7400 7 times, resulting in a remainder of 820.
Use 7 as the next digit of our solution. 
Result so far: 54032.8138297
If we subtract 6580 from 7400, we get 820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8200, and continue the process.

Advancing to step 16:
940 can be fit into 8200 8 times, resulting in a remainder of 680.
Use 8 as the next digit of our solution. 
Result so far: 54032.81382978
Subtracting 7520 from 8200 leaves us with 680.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6800, and continue the process.

The final outcome is 54032.81382978, with a leftover of 6.8e-07.