Let's divide 40840 by 50
The aim is to understand the frequency of 50 in 40840.

On to step 1:
If we divide 4 by 50, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 50

On to step 2:
50 can be fit into 40 0 times, resulting in a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Take the next digit (8) from the dividend and append it to 40, then repeat: 408 / 50

Let's proceed to step 3:
If we divide 408 by 50, we get 8 and a remainder of 8.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Subtracting 400 from 408 leaves us with 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 50

Step 4:
84 divided by 50 is 1 with a remainder of 34.
The number 1 becomes the next digit in our result. 
Result so far: 81.0
Deduct 50 from 84 and we're left with 34.
Include the next digit (0) from the dividend after 34, then repeat: 340 / 50

Step 5:
50 goes into 340 6 times with a remainder of 40.
The number 6 becomes the next digit in our result. 
Result so far: 816.0
Subtract 300 from 340 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 6:
When dividing 400 by 50, we get 8 with a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 816.8
Subtracting 400 from 400 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 7:
50 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 816.8
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
50 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 816.8
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 816.8 with a remaining 0.0.