Let's divide 181590 by 31
The aim is to understand the frequency of 31 in 181590.

Step 1:
31 goes into 1 0 times with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 31

Moving on to step 2:
The number 31 fits into 18 0 times, leaving a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 18 to get 18.
Grab the next digit (1) from the dividend, add it to 18, then carry on: 181 / 31

Step 3:
181 divided by 31 is 5 with a remainder of 26.
The next digit of our result is 5. 
Result so far: 5.0
If we take 155 away from 181, we end up with 26.
Include the next digit (5) from the dividend after 26, then repeat: 265 / 31

Advancing to step 4:
If we divide 265 by 31, we get 8 and a remainder of 17.
Write down 8 as next digit of the result. 
Result so far: 58.0
The remainder is 17 after subtracting 248 from 265.
Grab the next digit (9) from the dividend, add it to 17, then carry on: 179 / 31

Step 5:
31 goes into 179 5 times with a remainder of 24.
Write down 5 as next digit of the result. 
Result so far: 585.0
The remainder is 24 after subtracting 155 from 179.
Append the next digit (0) from the dividend to 24 and continue with: 240 / 31

Going ahead to step 6:
If we divide 240 by 31, we get 7 and a remainder of 23.
The next digit of our result is 7. 
Result so far: 5857.0
Subtracting 217 from 240 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:
If we divide 230 by 31, we get 7 and a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 5857.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.

Advancing to step 8:
31 goes into 130 4 times with a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 5857.74
Subtracting 124 from 130 leaves us 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 next digit of our result is 1. 
Result so far: 5857.741
Subtract 31 from 60 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 10:
When dividing 290 by 31, we get 9 with a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 5857.7419
If we subtract 279 from 290, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 11:
When dividing 110 by 31, we get 3 with a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 5857.74193
Subtracting 93 from 110 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.

Going ahead to step 12:
When dividing 170 by 31, we get 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 5857.741935
Subtracting 155 from 170 leaves us with 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:
If we divide 150 by 31, we get 4 and a remainder of 26.
The next digit of our result is 4. 
Result so far: 5857.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.

Let's proceed to step 14:
When dividing 260 by 31, we get 8 with a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 5857.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.

After the division, we end up with 5857.74193548 and a remainder of 1.2e-08.