We look at the division of 502317 by 32 
The aim is to understand the frequency of 32 in 502317.

Going ahead to step 1:
5 divided by 32 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 32

Step 2:
When dividing 50 by 32, we get 1 with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 32 from 50 leaves us with 18.
Take the next digit (2) from the dividend and append it to 18, then repeat: 182 / 32

Moving on to step 3:
The number 32 fits into 182 5 times, leaving a remainder of 22.
The next digit of our result is 5. 
Result so far: 15.0
Deduct 160 from 182 and we're left with 22.
Grab the next digit (3) from the dividend, add it to 22, then carry on: 223 / 32

Moving on to step 4:
32 can be fit into 223 6 times, resulting in a remainder of 31.
Use 6 as the next digit of our solution. 
Result so far: 156.0
Deduct 192 from 223 and we're left with 31.
Take the next digit (1) from the dividend and append it to 31, then repeat: 311 / 32

Moving on to step 5:
If we divide 311 by 32, we get 9 and a remainder of 23.
The number 9 becomes the next digit in our result. 
Result so far: 1569.0
Subtract 288 from 311 to get 23.
Grab the next digit (7) from the dividend, add it to 23, then carry on: 237 / 32

Step 6:
32 goes into 237 7 times with a remainder of 13.
The next digit of our result is 7. 
Result so far: 15697.0
Subtracting 224 from 237 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 7:
32 can be fit into 130 4 times, resulting in a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 15697.4
If we take 128 away from 130, we end up 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.

Going ahead to step 8:
When dividing 20 by 32, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 15697.4
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.

Advancing to step 9:
200 divided by 32 is 6 with a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 15697.406
Deduct 192 from 200 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 10:
When dividing 80 by 32, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 15697.4062
Subtract 64 from 80 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 11:
32 goes into 160 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 15697.40625
Subtracting 160 from 160 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 12:
0 divided by 32 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 15697.40625
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 13:
0 divided by 32 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 15697.40625
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 15697.40625 with a remaining 0.0.