We look at the division of 50457950 by 397 
The aim is to understand the frequency of 397 in 50457950.

Step 1:
If we divide 5 by 397, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 397

Step 2:
When dividing 50 by 397, we get 0 with a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 50, we end up with 50.
Append the next digit (4) from the dividend to 50 and continue with: 504 / 397

On to step 3:
The number 397 fits into 504 1 times, leaving a remainder of 107.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 397 from 504 leaves us with 107.
Take the next digit (5) from the dividend and append it to 107, then repeat: 1075 / 397

Moving on to step 4:
1075 divided by 397 is 2 with a remainder of 281.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Deduct 794 from 1075 and we're left with 281.
Take the next digit (7) from the dividend and append it to 281, then repeat: 2817 / 397

Let's proceed to step 5:
The number 397 fits into 2817 7 times, leaving a remainder of 38.
Put 7 as the next digit of the answer. 
Result so far: 127.0
If we subtract 2779 from 2817, we get 38.
Include the next digit (9) from the dividend after 38, then repeat: 389 / 397

On to step 6:
389 divided by 397 is 0 with a remainder of 389.
Put 0 as the next digit of the answer. 
Result so far: 1270.0
If we subtract 0 from 389, we get 389.
Append the next digit (5) from the dividend to 389 and continue with: 3895 / 397

Advancing to step 7:
3895 divided by 397 is 9 with a remainder of 322.
The number 9 becomes the next digit in our result. 
Result so far: 12709.0
The remainder is 322 after subtracting 3573 from 3895.
Fetch the next digit (0) from the dividend, attach it to 322 and continue: 3220 / 397

Advancing to step 8:
3220 divided by 397 is 8 with a remainder of 44.
The next digit of our result is 8. 
Result so far: 127098.0
Subtracting 3176 from 3220 leaves us with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Moving on to step 9:
397 goes into 440 1 times with a remainder of 43.
The next digit of our result is 1. 
Result so far: 127098.1
If we take 397 away from 440, we end up with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Moving on to step 10:
When dividing 430 by 397, we get 1 with a remainder of 33.
Record the quotient 1 as the next digit in the result. 
Result so far: 127098.11
Subtracting 397 from 430 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

The final outcome is 127098.11, with a leftover of 0.033.