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

Advancing to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 31

Moving on to step 2:
31 can be fit into 36 1 times, resulting in a remainder of 5.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 5 after subtracting 31 from 36.
Bring next digit (7) of the dividend behind the 5 and repeat the process: 57 / 31

Moving on to step 3:
31 can be fit into 57 1 times, resulting in a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 11.0
Subtracting 31 from 57 leaves us with 26.
Grab the next digit (5) from the dividend, add it to 26, then carry on: 265 / 31

Going ahead to step 4:
31 can be fit into 265 8 times, resulting in a remainder of 17.
Record the quotient 8 as the next digit in the result. 
Result so far: 118.0
If we subtract 248 from 265, we get 17.
Fetch the next digit (8) from the dividend, attach it to 17 and continue: 178 / 31

On to step 5:
31 goes into 178 5 times with a remainder of 23.
Put 5 as the next digit of the answer. 
Result so far: 1185.0
If we subtract 155 from 178, we get 23.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 31

Moving on to step 6:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 11857.0
The remainder is 13 after subtracting 217 from 230.
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 7:
31 goes into 130 4 times with a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 11857.4
If we take 124 away from 130, we end up 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.

Let's proceed to step 8:
31 can be fit into 60 1 times, resulting in a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 11857.41
The remainder is 29 after subtracting 31 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 9:
31 goes into 290 9 times with a remainder of 11.
The next digit of our result is 9. 
Result so far: 11857.419
The remainder is 11 after subtracting 279 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 10:
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: 11857.4193
Deduct 93 from 110 and we're left 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.

Step 11:
When dividing 170 by 31, we get 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 11857.41935
Deduct 155 from 170 and we're left 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.

Let's proceed to step 12:
If we divide 150 by 31, we get 4 and a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 11857.419354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 13:
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: 11857.4193548
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.

On to step 14:
31 goes into 120 3 times with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 11857.41935483
If we subtract 93 from 120, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

The quotient of the division is 11857.41935483, and the remainder is 2.7e-08.