We're dividing 31341131 by 138 
The aim is to understand the frequency of 138 in 31341131.

Moving on to step 1:
138 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 138

Step 2:
31 divided by 138 is 0 with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Grab the next digit (3) from the dividend, add it to 31, then carry on: 313 / 138

Step 3:
If we divide 313 by 138, we get 2 and a remainder of 37.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 276 from 313 and we're left with 37.
Grab the next digit (4) from the dividend, add it to 37, then carry on: 374 / 138

Step 4:
374 divided by 138 is 2 with a remainder of 98.
The next digit of our result is 2. 
Result so far: 22.0
Subtracting 276 from 374 leaves us with 98.
Grab the next digit (1) from the dividend, add it to 98, then carry on: 981 / 138

On to step 5:
The number 138 fits into 981 7 times, leaving a remainder of 15.
Write down 7 as next digit of the result. 
Result so far: 227.0
Deduct 966 from 981 and we're left with 15.
Grab the next digit (1) from the dividend, add it to 15, then carry on: 151 / 138

Advancing to step 6:
The number 138 fits into 151 1 times, leaving a remainder of 13.
The next digit of our result is 1. 
Result so far: 2271.0
If we subtract 138 from 151, we get 13.
Include the next digit (3) from the dividend after 13, then repeat: 133 / 138

Moving on to step 7:
The number 138 fits into 133 0 times, leaving a remainder of 133.
The next digit of our result is 0. 
Result so far: 22710.0
The remainder is 133 after subtracting 0 from 133.
Grab the next digit (1) from the dividend, add it to 133, then carry on: 1331 / 138

Moving on to step 8:
The number 138 fits into 1331 9 times, leaving a remainder of 89.
Write down 9 as next digit of the result. 
Result so far: 227109.0
Subtract 1242 from 1331 to get 89.
Since there are no more digits in the dividend, we add a zero to the remainder making it 890, and continue the process.

Going ahead to step 9:
138 can be fit into 890 6 times, resulting in a remainder of 62.
Use 6 as the next digit of our solution. 
Result so far: 227109.6
Deduct 828 from 890 and we're left with 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Moving on to step 10:
620 divided by 138 is 4 with a remainder of 68.
Write down 4 as next digit of the result. 
Result so far: 227109.64
If we take 552 away from 620, we end up with 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Step 11:
680 divided by 138 is 4 with a remainder of 128.
The next digit of our result is 4. 
Result so far: 227109.644
If we take 552 away from 680, we end up with 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

After the division, we end up with 227109.644 and a remainder of 0.0128.