We're dividing 504159 by 36 
The aim is to understand the frequency of 36 in 504159.

Moving on to step 1:
If we divide 5 by 36, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 36

Step 2:
36 can be fit into 50 1 times, resulting in a remainder of 14.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 36 away from 50, we end up with 14.
Take the next digit (4) from the dividend and append it to 14, then repeat: 144 / 36

Advancing to step 3:
36 can be fit into 144 4 times, resulting in a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 14.0
If we subtract 144 from 144, we get 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 36

Let's proceed to step 4:
36 can be fit into 1 0 times, resulting in a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 140.0
If we subtract 0 from 1, we get 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 36

Going ahead to step 5:
36 goes into 15 0 times with a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 1400.0
The remainder is 15 after subtracting 0 from 15.
Fetch the next digit (9) from the dividend, attach it to 15 and continue: 159 / 36

Going ahead to step 6:
36 can be fit into 159 4 times, resulting in a remainder of 15.
The number 4 becomes the next digit in our result. 
Result so far: 14004.0
If we take 144 away from 159, we end up 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 7:
36 goes into 150 4 times with a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 14004.4
The remainder is 6 after subtracting 144 from 150.
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:
If we divide 60 by 36, we get 1 and a remainder of 24.
Write down 1 as next digit of the result. 
Result so far: 14004.41
The remainder is 24 after subtracting 36 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 9:
The number 36 fits into 240 6 times, leaving a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 14004.416
The remainder is 24 after subtracting 216 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 10:
36 can be fit into 240 6 times, resulting in a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 14004.4166
If we subtract 216 from 240, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The final result is 14004.4166 with a remainder of 0.00024.