We're dividing 50104988 by 161 
The aim is to understand the frequency of 161 in 50104988.

Let's proceed to step 1:
The number 161 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 161

Let's proceed to step 2:
When dividing 50 by 161, we get 0 with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Grab the next digit (1) from the dividend, add it to 50, then carry on: 501 / 161

On to step 3:
When dividing 501 by 161, we get 3 with a remainder of 18.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtract 483 from 501 to get 18.
Take the next digit (0) from the dividend and append it to 18, then repeat: 180 / 161

Step 4:
When dividing 180 by 161, we get 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
If we take 161 away from 180, we end up with 19.
Take the next digit (4) from the dividend and append it to 19, then repeat: 194 / 161

Step 5:
161 goes into 194 1 times with a remainder of 33.
The number 1 becomes the next digit in our result. 
Result so far: 311.0
Subtracting 161 from 194 leaves us with 33.
Fetch the next digit (9) from the dividend, attach it to 33 and continue: 339 / 161

Advancing to step 6:
161 goes into 339 2 times with a remainder of 17.
Write down 2 as next digit of the result. 
Result so far: 3112.0
The remainder is 17 after subtracting 322 from 339.
Take the next digit (8) from the dividend and append it to 17, then repeat: 178 / 161

On to step 7:
178 divided by 161 is 1 with a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 31121.0
The remainder is 17 after subtracting 161 from 178.
Fetch the next digit (8) from the dividend, attach it to 17 and continue: 178 / 161

Step 8:
161 goes into 178 1 times with a remainder of 17.
The next digit of our result is 1. 
Result so far: 311211.0
Subtracting 161 from 178 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 9:
161 goes into 170 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 311211.1
The remainder is 9 after subtracting 161 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 10:
90 divided by 161 is 0 with a remainder of 90.
Record the quotient 0 as the next digit in the result. 
Result so far: 311211.1
If we take 0 away from 90, we end up with 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Step 11:
161 can be fit into 900 5 times, resulting in a remainder of 95.
Write down 5 as next digit of the result. 
Result so far: 311211.105
Subtracting 805 from 900 leaves us with 95.
Since there are no more digits in the dividend, we add a zero to the remainder making it 950, and continue the process.

On to step 12:
161 goes into 950 5 times with a remainder of 145.
Put 5 as the next digit of the answer. 
Result so far: 311211.1055
The remainder is 145 after subtracting 805 from 950.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1450, and continue the process.

Our division results in 311211.1055 with a remaining 0.00145.