We look at the division of 172231 by 57 
The aim is to understand the frequency of 57 in 172231.

Moving on to step 1:
1 divided by 57 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 57

Step 2:
57 goes into 17 0 times with a remainder of 17.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 17 after subtracting 0 from 17.
Fetch the next digit (2) from the dividend, attach it to 17 and continue: 172 / 57

Going ahead to step 3:
57 can be fit into 172 3 times, resulting in a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 3.0
Deduct 171 from 172 and we're left with 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 57

Moving on to step 4:
If we divide 12 by 57, we get 0 and a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 30.0
Subtracting 0 from 12 leaves us with 12.
Take the next digit (3) from the dividend and append it to 12, then repeat: 123 / 57

Step 5:
The number 57 fits into 123 2 times, leaving a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 302.0
If we subtract 114 from 123, we get 9.
Take the next digit (1) from the dividend and append it to 9, then repeat: 91 / 57

On to step 6:
When dividing 91 by 57, we get 1 with a remainder of 34.
The number 1 becomes the next digit in our result. 
Result so far: 3021.0
If we subtract 57 from 91, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 7:
The number 57 fits into 340 5 times, leaving a remainder of 55.
Record the quotient 5 as the next digit in the result. 
Result so far: 3021.5
Subtract 285 from 340 to get 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

On to step 8:
The number 57 fits into 550 9 times, leaving a remainder of 37.
Put 9 as the next digit of the answer. 
Result so far: 3021.59
Subtracting 513 from 550 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Going ahead to step 9:
When dividing 370 by 57, we get 6 with a remainder of 28.
Record the quotient 6 as the next digit in the result. 
Result so far: 3021.596
Subtract 342 from 370 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 10:
When dividing 280 by 57, we get 4 with a remainder of 52.
Put 4 as the next digit of the answer. 
Result so far: 3021.5964
Subtract 228 from 280 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Moving on to step 11:
520 divided by 57 is 9 with a remainder of 7.
The number 9 becomes the next digit in our result. 
Result so far: 3021.59649
If we take 513 away from 520, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 12:
When dividing 70 by 57, we get 1 with a remainder of 13.
Put 1 as the next digit of the answer. 
Result so far: 3021.596491
Deduct 57 from 70 and we're left 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.

Step 13:
130 divided by 57 is 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 3021.5964912
If we subtract 114 from 130, we 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 14:
160 divided by 57 is 2 with a remainder of 46.
Put 2 as the next digit of the answer. 
Result so far: 3021.59649122
If we take 114 away from 160, we end up with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

The final result is 3021.59649122 with a remainder of 4.6e-08.