We look at the division of 166336 by 52 
The aim is to understand the frequency of 52 in 166336.

On to step 1:
1 divided by 52 is 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 52

Step 2:
If we divide 16 by 52, we get 0 and a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 16 after subtracting 0 from 16.
Take the next digit (6) from the dividend and append it to 16, then repeat: 166 / 52

Moving on to step 3:
166 divided by 52 is 3 with a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Deduct 156 from 166 and we're left with 10.
Append the next digit (3) from the dividend to 10 and continue with: 103 / 52

Step 4:
When dividing 103 by 52, we get 1 with a remainder of 51.
Write down 1 as next digit of the result. 
Result so far: 31.0
Subtract 52 from 103 to get 51.
Fetch the next digit (3) from the dividend, attach it to 51 and continue: 513 / 52

On to step 5:
If we divide 513 by 52, we get 9 and a remainder of 45.
Record the quotient 9 as the next digit in the result. 
Result so far: 319.0
If we take 468 away from 513, we end up with 45.
Fetch the next digit (6) from the dividend, attach it to 45 and continue: 456 / 52

Let's proceed to step 6:
When dividing 456 by 52, we get 8 with a remainder of 40.
Put 8 as the next digit of the answer. 
Result so far: 3198.0
If we take 416 away from 456, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 7:
52 can be fit into 400 7 times, resulting in a remainder of 36.
The next digit of our result is 7. 
Result so far: 3198.7
The remainder is 36 after subtracting 364 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 8:
The number 52 fits into 360 6 times, leaving a remainder of 48.
Record the quotient 6 as the next digit in the result. 
Result so far: 3198.76
Subtracting 312 from 360 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 9:
52 goes into 480 9 times with a remainder of 12.
The next digit of our result is 9. 
Result so far: 3198.769
If we take 468 away from 480, we end up 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.

Moving on to step 10:
The number 52 fits into 120 2 times, leaving a remainder of 16.
The number 2 becomes the next digit in our result. 
Result so far: 3198.7692
Subtract 104 from 120 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.

Advancing to step 11:
When dividing 160 by 52, we get 3 with a remainder of 4.
Put 3 as the next digit of the answer. 
Result so far: 3198.76923
Deduct 156 from 160 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 12:
The number 52 fits into 40 0 times, leaving a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 3198.76923
Deduct 0 from 40 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 13:
When dividing 400 by 52, we get 7 with a remainder of 36.
Use 7 as the next digit of our solution. 
Result so far: 3198.7692307
If we take 364 away from 400, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 14:
52 goes into 360 6 times with a remainder of 48.
Put 6 as the next digit of the answer. 
Result so far: 3198.76923076
The remainder is 48 after subtracting 312 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

The quotient of the division is 3198.76923076, and the remainder is 4.8e-08.