Let's divide 31618380 by 161
The aim is to understand the frequency of 161 in 31618380.

On to step 1:
161 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 161

Moving on to step 2:
When dividing 31 by 161, we get 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Append the next digit (6) from the dividend to 31 and continue with: 316 / 161

Step 3:
When dividing 316 by 161, we get 1 with a remainder of 155.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 161 from 316 and we're left with 155.
Grab the next digit (1) from the dividend, add it to 155, then carry on: 1551 / 161

Advancing to step 4:
When dividing 1551 by 161, we get 9 with a remainder of 102.
Write down 9 as next digit of the result. 
Result so far: 19.0
Subtract 1449 from 1551 to get 102.
Append the next digit (8) from the dividend to 102 and continue with: 1028 / 161

Step 5:
When dividing 1028 by 161, we get 6 with a remainder of 62.
The number 6 becomes the next digit in our result. 
Result so far: 196.0
If we take 966 away from 1028, we end up with 62.
Grab the next digit (3) from the dividend, add it to 62, then carry on: 623 / 161

Moving on to step 6:
If we divide 623 by 161, we get 3 and a remainder of 140.
Use 3 as the next digit of our solution. 
Result so far: 1963.0
Subtracting 483 from 623 leaves us with 140.
Bring next digit (8) of the dividend behind the 140 and repeat the process: 1408 / 161

Advancing to step 7:
When dividing 1408 by 161, we get 8 with a remainder of 120.
Record the quotient 8 as the next digit in the result. 
Result so far: 19638.0
The remainder is 120 after subtracting 1288 from 1408.
Append the next digit (0) from the dividend to 120 and continue with: 1200 / 161

Let's proceed to step 8:
1200 divided by 161 is 7 with a remainder of 73.
The next digit of our result is 7. 
Result so far: 196387.0
If we take 1127 away from 1200, we end up with 73.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Let's proceed to step 9:
730 divided by 161 is 4 with a remainder of 86.
Record the quotient 4 as the next digit in the result. 
Result so far: 196387.4
Deduct 644 from 730 and we're left with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Moving on to step 10:
161 can be fit into 860 5 times, resulting in a remainder of 55.
Put 5 as the next digit of the answer. 
Result so far: 196387.45
Subtract 805 from 860 to get 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Moving on to step 11:
161 can be fit into 550 3 times, resulting in a remainder of 67.
Record the quotient 3 as the next digit in the result. 
Result so far: 196387.453
If we take 483 away from 550, we end up with 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Let's proceed to step 12:
670 divided by 161 is 4 with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 196387.4534
Subtracting 644 from 670 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 13:
161 can be fit into 260 1 times, resulting in a remainder of 99.
Write down 1 as next digit of the result. 
Result so far: 196387.45341
Deduct 161 from 260 and we're left with 99.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

Going ahead to step 14:
990 divided by 161 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 196387.453416
If we subtract 966 from 990, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 15:
If we divide 240 by 161, we get 1 and a remainder of 79.
The number 1 becomes the next digit in our result. 
Result so far: 196387.4534161
Subtracting 161 from 240 leaves us with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

Going ahead to step 16:
If we divide 790 by 161, we get 4 and a remainder of 146.
Put 4 as the next digit of the answer. 
Result so far: 196387.45341614
Subtract 644 from 790 to get 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

The final result is 196387.45341614 with a remainder of 1.46e-07.