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

On to step 1:
The number 57 fits into 9 0 times, leaving a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Grab the next digit (9) from the dividend, add it to 9, then carry on: 99 / 57

Advancing to step 2:
57 goes into 99 1 times with a remainder of 42.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 42 after subtracting 57 from 99.
Take the next digit (7) from the dividend and append it to 42, then repeat: 427 / 57

Let's proceed to step 3:
427 divided by 57 is 7 with a remainder of 28.
Use 7 as the next digit of our solution. 
Result so far: 17.0
Subtracting 399 from 427 leaves us with 28.
Append the next digit (1) from the dividend to 28 and continue with: 281 / 57

Moving on to step 4:
57 goes into 281 4 times with a remainder of 53.
Use 4 as the next digit of our solution. 
Result so far: 174.0
Deduct 228 from 281 and we're left with 53.
Append the next digit (0) from the dividend to 53 and continue with: 530 / 57

On to step 5:
If we divide 530 by 57, we get 9 and a remainder of 17.
Put 9 as the next digit of the answer. 
Result so far: 1749.0
Subtract 513 from 530 to get 17.
Append the next digit (4) from the dividend to 17 and continue with: 174 / 57

Advancing to step 6:
If we divide 174 by 57, we get 3 and a remainder of 3.
The number 3 becomes the next digit in our result. 
Result so far: 17493.0
Subtract 171 from 174 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 7:
When dividing 30 by 57, we get 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 17493.0
If we take 0 away from 30, we end up with 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 8:
When dividing 300 by 57, we get 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 17493.05
Subtracting 285 from 300 leaves us 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.

On to step 9:
57 can be fit into 150 2 times, resulting in a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 17493.052
If we subtract 114 from 150, we get 36.
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 10:
When dividing 360 by 57, we get 6 with a remainder of 18.
Use 6 as the next digit of our solution. 
Result so far: 17493.0526
Subtracting 342 from 360 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 11:
180 divided by 57 is 3 with a remainder of 9.
Use 3 as the next digit of our solution. 
Result so far: 17493.05263
Subtract 171 from 180 to 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.

Going ahead to step 12:
When dividing 90 by 57, we get 1 with a remainder of 33.
Put 1 as the next digit of the answer. 
Result so far: 17493.052631
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.

Let's proceed to step 13:
The number 57 fits into 330 5 times, leaving a remainder of 45.
Write down 5 as next digit of the result. 
Result so far: 17493.0526315
Deduct 285 from 330 and we're left with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

On to step 14:
The number 57 fits into 450 7 times, leaving a remainder of 51.
Put 7 as the next digit of the answer. 
Result so far: 17493.05263157
Subtracting 399 from 450 leaves us with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

The quotient of the division is 17493.05263157, and the remainder is 5.1e-08.