We look at the division of 20002505 by 397 
The aim is to understand the frequency of 397 in 20002505.

Advancing to step 1:
397 can be fit into 2 0 times, resulting in a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 397

Step 2:
397 can be fit into 20 0 times, resulting in a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 20 to get 20.
Bring next digit (0) of the dividend behind the 20 and repeat the process: 200 / 397

On to step 3:
200 divided by 397 is 0 with a remainder of 200.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 200 leaves us with 200.
Bring next digit (0) of the dividend behind the 200 and repeat the process: 2000 / 397

Moving on to step 4:
397 can be fit into 2000 5 times, resulting in a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 1985 from 2000 and we're left with 15.
Bring next digit (2) of the dividend behind the 15 and repeat the process: 152 / 397

Moving on to step 5:
If we divide 152 by 397, we get 0 and a remainder of 152.
Use 0 as the next digit of our solution. 
Result so far: 50.0
Deduct 0 from 152 and we're left with 152.
Include the next digit (5) from the dividend after 152, then repeat: 1525 / 397

Moving on to step 6:
397 goes into 1525 3 times with a remainder of 334.
Use 3 as the next digit of our solution. 
Result so far: 503.0
The remainder is 334 after subtracting 1191 from 1525.
Fetch the next digit (0) from the dividend, attach it to 334 and continue: 3340 / 397

Moving on to step 7:
397 goes into 3340 8 times with a remainder of 164.
Record the quotient 8 as the next digit in the result. 
Result so far: 5038.0
If we subtract 3176 from 3340, we get 164.
Take the next digit (5) from the dividend and append it to 164, then repeat: 1645 / 397

On to step 8:
397 goes into 1645 4 times with a remainder of 57.
Write down 4 as next digit of the result. 
Result so far: 50384.0
If we take 1588 away from 1645, we end up with 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

On to step 9:
570 divided by 397 is 1 with a remainder of 173.
The number 1 becomes the next digit in our result. 
Result so far: 50384.1
The remainder is 173 after subtracting 397 from 570.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1730, and continue the process.

On to step 10:
If we divide 1730 by 397, we get 4 and a remainder of 142.
Put 4 as the next digit of the answer. 
Result so far: 50384.14
If we subtract 1588 from 1730, we get 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

Going ahead to step 11:
The number 397 fits into 1420 3 times, leaving a remainder of 229.
Write down 3 as next digit of the result. 
Result so far: 50384.143
Subtract 1191 from 1420 to get 229.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2290, and continue the process.

Moving on to step 12:
397 can be fit into 2290 5 times, resulting in a remainder of 305.
The number 5 becomes the next digit in our result. 
Result so far: 50384.1435
Subtract 1985 from 2290 to get 305.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3050, and continue the process.

Moving on to step 13:
If we divide 3050 by 397, we get 7 and a remainder of 271.
Put 7 as the next digit of the answer. 
Result so far: 50384.14357
Deduct 2779 from 3050 and we're left with 271.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2710, and continue the process.

Going ahead to step 14:
2710 divided by 397 is 6 with a remainder of 328.
Put 6 as the next digit of the answer. 
Result so far: 50384.143576
Subtracting 2382 from 2710 leaves us with 328.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3280, and continue the process.

Let's proceed to step 15:
397 can be fit into 3280 8 times, resulting in a remainder of 104.
Write down 8 as next digit of the result. 
Result so far: 50384.1435768
Deduct 3176 from 3280 and we're left with 104.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

Going ahead to step 16:
397 can be fit into 1040 2 times, resulting in a remainder of 246.
Use 2 as the next digit of our solution. 
Result so far: 50384.14357682
Deduct 794 from 1040 and we're left with 246.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2460, and continue the process.

Our division results in 50384.14357682 with a remaining 2.46e-07.