We're dividing 504893 by 58 
The aim is to understand the frequency of 58 in 504893.

Going ahead to step 1:
When dividing 5 by 58, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 58

Let's proceed to step 2:
If we divide 50 by 58, we get 0 and a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 50, we end up with 50.
Take the next digit (4) from the dividend and append it to 50, then repeat: 504 / 58

Step 3:
58 can be fit into 504 8 times, resulting in a remainder of 40.
The next digit of our result is 8. 
Result so far: 8.0
If we take 464 away from 504, we end up with 40.
Take the next digit (8) from the dividend and append it to 40, then repeat: 408 / 58

Advancing to step 4:
When dividing 408 by 58, we get 7 with a remainder of 2.
The next digit of our result is 7. 
Result so far: 87.0
Subtract 406 from 408 to get 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 58

Moving on to step 5:
If we divide 29 by 58, we get 0 and a remainder of 29.
The next digit of our result is 0. 
Result so far: 870.0
Deduct 0 from 29 and we're left with 29.
Grab the next digit (3) from the dividend, add it to 29, then carry on: 293 / 58

Step 6:
58 can be fit into 293 5 times, resulting in a remainder of 3.
Use 5 as the next digit of our solution. 
Result so far: 8705.0
Subtract 290 from 293 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.

Going ahead to step 7:
When dividing 30 by 58, we get 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 8705.0
Deduct 0 from 30 and we're left 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.

Advancing to step 8:
When dividing 300 by 58, we get 5 with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 8705.05
Subtract 290 from 300 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 9:
When dividing 100 by 58, we get 1 with a remainder of 42.
Use 1 as the next digit of our solution. 
Result so far: 8705.051
Deduct 58 from 100 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Advancing to step 10:
420 divided by 58 is 7 with a remainder of 14.
Use 7 as the next digit of our solution. 
Result so far: 8705.0517
Subtracting 406 from 420 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 11:
The number 58 fits into 140 2 times, leaving a remainder of 24.
The next digit of our result is 2. 
Result so far: 8705.05172
Subtract 116 from 140 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 12:
58 goes into 240 4 times with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 8705.051724
If we subtract 232 from 240, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 13:
If we divide 80 by 58, we get 1 and a remainder of 22.
Write down 1 as next digit of the result. 
Result so far: 8705.0517241
If we subtract 58 from 80, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 14:
The number 58 fits into 220 3 times, leaving a remainder of 46.
Write down 3 as next digit of the result. 
Result so far: 8705.05172413
The remainder is 46 after subtracting 174 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

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