Let's divide 157318 by 51
The aim is to understand the frequency of 51 in 157318.

Advancing to step 1:
The number 51 fits into 1 0 times, leaving a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 51

Going ahead to step 2:
If we divide 15 by 51, we get 0 and a remainder of 15.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Grab the next digit (7) from the dividend, add it to 15, then carry on: 157 / 51

Moving on to step 3:
157 divided by 51 is 3 with a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtracting 153 from 157 leaves us with 4.
Include the next digit (3) from the dividend after 4, then repeat: 43 / 51

Advancing to step 4:
51 goes into 43 0 times with a remainder of 43.
Record the quotient 0 as the next digit in the result. 
Result so far: 30.0
If we take 0 away from 43, we end up with 43.
Fetch the next digit (1) from the dividend, attach it to 43 and continue: 431 / 51

Moving on to step 5:
The number 51 fits into 431 8 times, leaving a remainder of 23.
Record the quotient 8 as the next digit in the result. 
Result so far: 308.0
The remainder is 23 after subtracting 408 from 431.
Bring next digit (8) of the dividend behind the 23 and repeat the process: 238 / 51

On to step 6:
If we divide 238 by 51, we get 4 and a remainder of 34.
The next digit of our result is 4. 
Result so far: 3084.0
Subtracting 204 from 238 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 7:
When dividing 340 by 51, we get 6 with a remainder of 34.
Use 6 as the next digit of our solution. 
Result so far: 3084.6
The remainder is 34 after subtracting 306 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 8:
If we divide 340 by 51, we get 6 and a remainder of 34.
Put 6 as the next digit of the answer. 
Result so far: 3084.66
Deduct 306 from 340 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

After the division, we end up with 3084.66 and a remainder of 0.034.