We look at the division of 50231582 by 766 
The aim is to understand the frequency of 766 in 50231582.

Step 1:
5 divided by 766 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 766

Going ahead to step 2:
766 can be fit into 50 0 times, resulting in a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 50, we end up with 50.
Fetch the next digit (2) from the dividend, attach it to 50 and continue: 502 / 766

Going ahead to step 3:
766 can be fit into 502 0 times, resulting in a remainder of 502.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 502 to get 502.
Grab the next digit (3) from the dividend, add it to 502, then carry on: 5023 / 766

Going ahead to step 4:
If we divide 5023 by 766, we get 6 and a remainder of 427.
Put 6 as the next digit of the answer. 
Result so far: 6.0
If we take 4596 away from 5023, we end up with 427.
Bring next digit (1) of the dividend behind the 427 and repeat the process: 4271 / 766

Let's proceed to step 5:
The number 766 fits into 4271 5 times, leaving a remainder of 441.
Record the quotient 5 as the next digit in the result. 
Result so far: 65.0
If we take 3830 away from 4271, we end up with 441.
Fetch the next digit (5) from the dividend, attach it to 441 and continue: 4415 / 766

Advancing to step 6:
766 goes into 4415 5 times with a remainder of 585.
The next digit of our result is 5. 
Result so far: 655.0
Subtract 3830 from 4415 to get 585.
Grab the next digit (8) from the dividend, add it to 585, then carry on: 5858 / 766

Step 7:
766 goes into 5858 7 times with a remainder of 496.
Use 7 as the next digit of our solution. 
Result so far: 6557.0
Deduct 5362 from 5858 and we're left with 496.
Bring next digit (2) of the dividend behind the 496 and repeat the process: 4962 / 766

Advancing to step 8:
4962 divided by 766 is 6 with a remainder of 366.
Record the quotient 6 as the next digit in the result. 
Result so far: 65576.0
If we subtract 4596 from 4962, we 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.

Going ahead to step 9:
766 can be fit into 3660 4 times, resulting in a remainder of 596.
Write down 4 as next digit of the result. 
Result so far: 65576.4
If we subtract 3064 from 3660, we get 596.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5960, and continue the process.

Moving on to step 10:
766 goes into 5960 7 times with a remainder of 598.
Record the quotient 7 as the next digit in the result. 
Result so far: 65576.47
Deduct 5362 from 5960 and we're left with 598.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5980, and continue the process.

Step 11:
766 can be fit into 5980 7 times, resulting in a remainder of 618.
The next digit of our result is 7. 
Result so far: 65576.477
If we subtract 5362 from 5980, we get 618.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6180, and continue the process.

After the division, we end up with 65576.477 and a remainder of 0.0618.