We look at the division of 297115 by 59 
The aim is to understand the frequency of 59 in 297115.

Step 1:
If we divide 2 by 59, we get 0 and a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 59

On to step 2:
If we divide 29 by 59, we get 0 and a remainder of 29.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 29 to get 29.
Grab the next digit (7) from the dividend, add it to 29, then carry on: 297 / 59

On to step 3:
297 divided by 59 is 5 with a remainder of 2.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we subtract 295 from 297, we get 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 59

On to step 4:
21 divided by 59 is 0 with a remainder of 21.
Record the quotient 0 as the next digit in the result. 
Result so far: 50.0
Subtracting 0 from 21 leaves us with 21.
Append the next digit (1) from the dividend to 21 and continue with: 211 / 59

On to step 5:
59 can be fit into 211 3 times, resulting in a remainder of 34.
Put 3 as the next digit of the answer. 
Result so far: 503.0
The remainder is 34 after subtracting 177 from 211.
Append the next digit (5) from the dividend to 34 and continue with: 345 / 59

Going ahead to step 6:
345 divided by 59 is 5 with a remainder of 50.
Put 5 as the next digit of the answer. 
Result so far: 5035.0
If we subtract 295 from 345, we get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Advancing to step 7:
When dividing 500 by 59, we get 8 with a remainder of 28.
Use 8 as the next digit of our solution. 
Result so far: 5035.8
Subtracting 472 from 500 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 8:
If we divide 280 by 59, we get 4 and a remainder of 44.
Put 4 as the next digit of the answer. 
Result so far: 5035.84
If we subtract 236 from 280, we get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Advancing to step 9:
When dividing 440 by 59, we get 7 with a remainder of 27.
Write down 7 as next digit of the result. 
Result so far: 5035.847
If we subtract 413 from 440, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 10:
When dividing 270 by 59, we get 4 with a remainder of 34.
Use 4 as the next digit of our solution. 
Result so far: 5035.8474
Deduct 236 from 270 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.

Moving on to step 11:
When dividing 340 by 59, we get 5 with a remainder of 45.
The number 5 becomes the next digit in our result. 
Result so far: 5035.84745
Subtract 295 from 340 to get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Step 12:
450 divided by 59 is 7 with a remainder of 37.
Record the quotient 7 as the next digit in the result. 
Result so far: 5035.847457
If we take 413 away from 450, we end up 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.

On to step 13:
370 divided by 59 is 6 with a remainder of 16.
Use 6 as the next digit of our solution. 
Result so far: 5035.8474576
The remainder is 16 after subtracting 354 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 14:
The number 59 fits into 160 2 times, leaving a remainder of 42.
The number 2 becomes the next digit in our result. 
Result so far: 5035.84745762
Subtract 118 from 160 to get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

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