Let's divide 398531 by 36
The aim is to understand the frequency of 36 in 398531.

Going ahead to step 1:
When dividing 3 by 36, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 36

On to step 2:
The number 36 fits into 39 1 times, leaving a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 36 away from 39, we end up with 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 36

On to step 3:
The number 36 fits into 38 1 times, leaving a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 11.0
The remainder is 2 after subtracting 36 from 38.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 36

Let's proceed to step 4:
25 divided by 36 is 0 with a remainder of 25.
Put 0 as the next digit of the answer. 
Result so far: 110.0
The remainder is 25 after subtracting 0 from 25.
Bring next digit (3) of the dividend behind the 25 and repeat the process: 253 / 36

Let's proceed to step 5:
253 divided by 36 is 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 1107.0
The remainder is 1 after subtracting 252 from 253.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 36

On to step 6:
When dividing 11 by 36, we get 0 with a remainder of 11.
Put 0 as the next digit of the answer. 
Result so far: 11070.0
Subtract 0 from 11 to 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.

On to step 7:
36 can be fit into 110 3 times, resulting in a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 11070.3
Subtracting 108 from 110 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 8:
When dividing 20 by 36, we get 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 11070.3
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
200 divided by 36 is 5 with a remainder of 20.
Use 5 as the next digit of our solution. 
Result so far: 11070.305
If we take 180 away from 200, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 10:
36 can be fit into 200 5 times, resulting in a remainder of 20.
Put 5 as the next digit of the answer. 
Result so far: 11070.3055
Subtract 180 from 200 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Our division results in 11070.3055 with a remaining 0.0002.