Let's divide 17798489 by 397
The aim is to understand the frequency of 397 in 17798489.

Advancing to step 1:
When dividing 1 by 397, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 397

Advancing to step 2:
If we divide 17 by 397, we get 0 and a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 17 and we're left with 17.
Fetch the next digit (7) from the dividend, attach it to 17 and continue: 177 / 397

Let's proceed to step 3:
397 goes into 177 0 times with a remainder of 177.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 177 after subtracting 0 from 177.
Grab the next digit (9) from the dividend, add it to 177, then carry on: 1779 / 397

Let's proceed to step 4:
The number 397 fits into 1779 4 times, leaving a remainder of 191.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtract 1588 from 1779 to get 191.
Append the next digit (8) from the dividend to 191 and continue with: 1918 / 397

Moving on to step 5:
397 goes into 1918 4 times with a remainder of 330.
The number 4 becomes the next digit in our result. 
Result so far: 44.0
Subtracting 1588 from 1918 leaves us with 330.
Bring next digit (4) of the dividend behind the 330 and repeat the process: 3304 / 397

Step 6:
The number 397 fits into 3304 8 times, leaving a remainder of 128.
Write down 8 as next digit of the result. 
Result so far: 448.0
Deduct 3176 from 3304 and we're left with 128.
Fetch the next digit (8) from the dividend, attach it to 128 and continue: 1288 / 397

Moving on to step 7:
The number 397 fits into 1288 3 times, leaving a remainder of 97.
Put 3 as the next digit of the answer. 
Result so far: 4483.0
Subtract 1191 from 1288 to get 97.
Bring next digit (9) of the dividend behind the 97 and repeat the process: 979 / 397

Moving on to step 8:
When dividing 979 by 397, we get 2 with a remainder of 185.
The next digit of our result is 2. 
Result so far: 44832.0
If we subtract 794 from 979, we get 185.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1850, and continue the process.

Moving on to step 9:
397 can be fit into 1850 4 times, resulting in a remainder of 262.
Record the quotient 4 as the next digit in the result. 
Result so far: 44832.4
The remainder is 262 after subtracting 1588 from 1850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2620, and continue the process.

Advancing to step 10:
397 goes into 2620 6 times with a remainder of 238.
The number 6 becomes the next digit in our result. 
Result so far: 44832.46
Subtract 2382 from 2620 to get 238.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2380, and continue the process.

On to step 11:
The number 397 fits into 2380 5 times, leaving a remainder of 395.
Write down 5 as next digit of the result. 
Result so far: 44832.465
Subtract 1985 from 2380 to get 395.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3950, and continue the process.

Let's proceed to step 12:
When dividing 3950 by 397, we get 9 with a remainder of 377.
Record the quotient 9 as the next digit in the result. 
Result so far: 44832.4659
Deduct 3573 from 3950 and we're left with 377.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3770, and continue the process.

Moving on to step 13:
397 goes into 3770 9 times with a remainder of 197.
The next digit of our result is 9. 
Result so far: 44832.46599
If we take 3573 away from 3770, we end up with 197.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1970, and continue the process.

Our division results in 44832.46599 with a remaining 0.000197.