506166 ÷ 57 
The aim is to understand the frequency of 57 in 506166.

Going ahead to step 1:
57 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 57

On to step 2:
When dividing 50 by 57, we get 0 with a remainder of 50.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Append the next digit (6) from the dividend to 50 and continue with: 506 / 57

Going ahead to step 3:
57 goes into 506 8 times with a remainder of 50.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Deduct 456 from 506 and we're left with 50.
Take the next digit (1) from the dividend and append it to 50, then repeat: 501 / 57

Step 4:
When dividing 501 by 57, we get 8 with a remainder of 45.
Put 8 as the next digit of the answer. 
Result so far: 88.0
If we subtract 456 from 501, we get 45.
Take the next digit (6) from the dividend and append it to 45, then repeat: 456 / 57

Moving on to step 5:
456 divided by 57 is 8 with a remainder of 0.
The next digit of our result is 8. 
Result so far: 888.0
Deduct 456 from 456 and we're left with 0.
Fetch the next digit (6) from the dividend, attach it to 0 and continue: 6 / 57

On to step 6:
6 divided by 57 is 0 with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 8880.0
The remainder is 6 after subtracting 0 from 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 7:
60 divided by 57 is 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 8880.1
The remainder is 3 after subtracting 57 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 8:
The number 57 fits into 30 0 times, leaving a remainder of 30.
The next digit of our result is 0. 
Result so far: 8880.1
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 9:
300 divided by 57 is 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 8880.105
If we subtract 285 from 300, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 10:
57 can be fit into 150 2 times, resulting in a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 8880.1052
The remainder is 36 after subtracting 114 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 11:
The number 57 fits into 360 6 times, leaving a remainder of 18.
Put 6 as the next digit of the answer. 
Result so far: 8880.10526
The remainder is 18 after subtracting 342 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 12:
When dividing 180 by 57, we get 3 with a remainder of 9.
Record the quotient 3 as the next digit in the result. 
Result so far: 8880.105263
If we subtract 171 from 180, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 13:
The number 57 fits into 90 1 times, leaving a remainder of 33.
The next digit of our result is 1. 
Result so far: 8880.1052631
Subtract 57 from 90 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 14:
57 can be fit into 330 5 times, resulting in a remainder of 45.
Record the quotient 5 as the next digit in the result. 
Result so far: 8880.10526315
The remainder is 45 after subtracting 285 from 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

After the division, we end up with 8880.10526315 and a remainder of 4.5e-08.