We divide 145661 by 31
The aim is to understand the frequency of 31 in 145661.

Step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 31

Advancing to step 2:
If we divide 14 by 31, we get 0 and a remainder of 14.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 14, we get 14.
Fetch the next digit (5) from the dividend, attach it to 14 and continue: 145 / 31

On to step 3:
31 can be fit into 145 4 times, resulting in a remainder of 21.
Use 4 as the next digit of our solution. 
Result so far: 4.0
If we take 124 away from 145, we end up with 21.
Bring next digit (6) of the dividend behind the 21 and repeat the process: 216 / 31

On to step 4:
216 divided by 31 is 6 with a remainder of 30.
Use 6 as the next digit of our solution. 
Result so far: 46.0
If we take 186 away from 216, we end up with 30.
Include the next digit (6) from the dividend after 30, then repeat: 306 / 31

Step 5:
The number 31 fits into 306 9 times, leaving a remainder of 27.
Record the quotient 9 as the next digit in the result. 
Result so far: 469.0
Subtract 279 from 306 to get 27.
Take the next digit (1) from the dividend and append it to 27, then repeat: 271 / 31

Going ahead to step 6:
31 goes into 271 8 times with a remainder of 23.
The next digit of our result is 8. 
Result so far: 4698.0
Subtracting 248 from 271 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 7:
230 divided by 31 is 7 with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 4698.7
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 8:
The number 31 fits into 130 4 times, leaving a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 4698.74
Deduct 124 from 130 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 9:
60 divided by 31 is 1 with a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 4698.741
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 10:
When dividing 290 by 31, we get 9 with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 4698.7419
Subtracting 279 from 290 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 11:
If we divide 110 by 31, we get 3 and a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 4698.74193
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 12:
31 goes into 170 5 times with a remainder of 15.
The next digit of our result is 5. 
Result so far: 4698.741935
If we subtract 155 from 170, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 13:
When dividing 150 by 31, we get 4 with a remainder of 26.
The next digit of our result is 4. 
Result so far: 4698.7419354
If we take 124 away from 150, we end up 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.

Advancing to step 14:
If we divide 260 by 31, we get 8 and a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 4698.74193548
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Our division results in 4698.74193548 with a remaining 1.2e-08.