We're dividing 3169710 by 157 
The aim is to understand the frequency of 157 in 3169710.

On to step 1:
When dividing 3 by 157, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 157

Let's proceed to step 2:
157 can be fit into 31 0 times, resulting in a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Take the next digit (6) from the dividend and append it to 31, then repeat: 316 / 157

Step 3:
When dividing 316 by 157, we get 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 314 away from 316, we end up with 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 157

Going ahead to step 4:
If we divide 29 by 157, we get 0 and a remainder of 29.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
If we take 0 away from 29, we end up with 29.
Take the next digit (7) from the dividend and append it to 29, then repeat: 297 / 157

Moving on to step 5:
297 divided by 157 is 1 with a remainder of 140.
Record the quotient 1 as the next digit in the result. 
Result so far: 201.0
If we subtract 157 from 297, we get 140.
Append the next digit (1) from the dividend to 140 and continue with: 1401 / 157

Going ahead to step 6:
The number 157 fits into 1401 8 times, leaving a remainder of 145.
Use 8 as the next digit of our solution. 
Result so far: 2018.0
Deduct 1256 from 1401 and we're left with 145.
Include the next digit (0) from the dividend after 145, then repeat: 1450 / 157

Advancing to step 7:
157 goes into 1450 9 times with a remainder of 37.
The number 9 becomes the next digit in our result. 
Result so far: 20189.0
Subtracting 1413 from 1450 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.

Let's proceed to step 8:
370 divided by 157 is 2 with a remainder of 56.
Record the quotient 2 as the next digit in the result. 
Result so far: 20189.2
If we take 314 away from 370, we end up with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Step 9:
If we divide 560 by 157, we get 3 and a remainder of 89.
Record the quotient 3 as the next digit in the result. 
Result so far: 20189.23
The remainder is 89 after subtracting 471 from 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 890, and continue the process.

Advancing to step 10:
890 divided by 157 is 5 with a remainder of 105.
The number 5 becomes the next digit in our result. 
Result so far: 20189.235
If we take 785 away from 890, we end up with 105.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1050, and continue the process.

Going ahead to step 11:
If we divide 1050 by 157, we get 6 and a remainder of 108.
Record the quotient 6 as the next digit in the result. 
Result so far: 20189.2356
If we subtract 942 from 1050, we get 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Moving on to step 12:
The number 157 fits into 1080 6 times, leaving a remainder of 138.
Record the quotient 6 as the next digit in the result. 
Result so far: 20189.23566
The remainder is 138 after subtracting 942 from 1080.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1380, and continue the process.

Our division results in 20189.23566 with a remaining 0.000138.