We're dividing 87176398 by 523 
The aim is to understand the frequency of 523 in 87176398.

Step 1:
8 divided by 523 is 0 with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 523

Step 2:
When dividing 87 by 523, we get 0 with a remainder of 87.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 87 to get 87.
Bring next digit (1) of the dividend behind the 87 and repeat the process: 871 / 523

Going ahead to step 3:
523 can be fit into 871 1 times, resulting in a remainder of 348.
The next digit of our result is 1. 
Result so far: 1.0
If we take 523 away from 871, we end up with 348.
Take the next digit (7) from the dividend and append it to 348, then repeat: 3487 / 523

Advancing to step 4:
523 can be fit into 3487 6 times, resulting in a remainder of 349.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtract 3138 from 3487 to get 349.
Include the next digit (6) from the dividend after 349, then repeat: 3496 / 523

Moving on to step 5:
When dividing 3496 by 523, we get 6 with a remainder of 358.
Use 6 as the next digit of our solution. 
Result so far: 166.0
Subtracting 3138 from 3496 leaves us with 358.
Append the next digit (3) from the dividend to 358 and continue with: 3583 / 523

Advancing to step 6:
The number 523 fits into 3583 6 times, leaving a remainder of 445.
The number 6 becomes the next digit in our result. 
Result so far: 1666.0
Subtract 3138 from 3583 to get 445.
Fetch the next digit (9) from the dividend, attach it to 445 and continue: 4459 / 523

On to step 7:
523 goes into 4459 8 times with a remainder of 275.
The number 8 becomes the next digit in our result. 
Result so far: 16668.0
If we take 4184 away from 4459, we end up with 275.
Fetch the next digit (8) from the dividend, attach it to 275 and continue: 2758 / 523

Step 8:
When dividing 2758 by 523, we get 5 with a remainder of 143.
Write down 5 as next digit of the result. 
Result so far: 166685.0
The remainder is 143 after subtracting 2615 from 2758.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1430, and continue the process.

Moving on to step 9:
When dividing 1430 by 523, we get 2 with a remainder of 384.
Record the quotient 2 as the next digit in the result. 
Result so far: 166685.2
Subtracting 1046 from 1430 leaves us with 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Step 10:
523 can be fit into 3840 7 times, resulting in a remainder of 179.
The next digit of our result is 7. 
Result so far: 166685.27
If we subtract 3661 from 3840, we get 179.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1790, and continue the process.

Going ahead to step 11:
The number 523 fits into 1790 3 times, leaving a remainder of 221.
Put 3 as the next digit of the answer. 
Result so far: 166685.273
Subtract 1569 from 1790 to get 221.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2210, and continue the process.

Let's proceed to step 12:
523 can be fit into 2210 4 times, resulting in a remainder of 118.
Record the quotient 4 as the next digit in the result. 
Result so far: 166685.2734
Deduct 2092 from 2210 and we're left with 118.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1180, and continue the process.

Advancing to step 13:
If we divide 1180 by 523, we get 2 and a remainder of 134.
Use 2 as the next digit of our solution. 
Result so far: 166685.27342
If we take 1046 away from 1180, we end up with 134.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1340, and continue the process.

Advancing to step 14:
523 goes into 1340 2 times with a remainder of 294.
Use 2 as the next digit of our solution. 
Result so far: 166685.273422
If we take 1046 away from 1340, we end up with 294.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

Our division results in 166685.273422 with a remaining 2.94e-05.