We look at the division of 9151397 by 338 
The aim is to understand the frequency of 338 in 9151397.

Going ahead to step 1:
If we divide 9 by 338, we get 0 and a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Take the next digit (1) from the dividend and append it to 9, then repeat: 91 / 338

Moving on to step 2:
338 can be fit into 91 0 times, resulting in a remainder of 91.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 91 to get 91.
Fetch the next digit (5) from the dividend, attach it to 91 and continue: 915 / 338

Advancing to step 3:
When dividing 915 by 338, we get 2 with a remainder of 239.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we subtract 676 from 915, we get 239.
Fetch the next digit (1) from the dividend, attach it to 239 and continue: 2391 / 338

Going ahead to step 4:
The number 338 fits into 2391 7 times, leaving a remainder of 25.
Record the quotient 7 as the next digit in the result. 
Result so far: 27.0
If we subtract 2366 from 2391, we get 25.
Grab the next digit (3) from the dividend, add it to 25, then carry on: 253 / 338

Advancing to step 5:
The number 338 fits into 253 0 times, leaving a remainder of 253.
Put 0 as the next digit of the answer. 
Result so far: 270.0
The remainder is 253 after subtracting 0 from 253.
Include the next digit (9) from the dividend after 253, then repeat: 2539 / 338

Moving on to step 6:
When dividing 2539 by 338, we get 7 with a remainder of 173.
Use 7 as the next digit of our solution. 
Result so far: 2707.0
Subtracting 2366 from 2539 leaves us with 173.
Take the next digit (7) from the dividend and append it to 173, then repeat: 1737 / 338

On to step 7:
The number 338 fits into 1737 5 times, leaving a remainder of 47.
Write down 5 as next digit of the result. 
Result so far: 27075.0
Deduct 1690 from 1737 and we're left with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Step 8:
When dividing 470 by 338, we get 1 with a remainder of 132.
Put 1 as the next digit of the answer. 
Result so far: 27075.1
Subtract 338 from 470 to get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Let's proceed to step 9:
338 can be fit into 1320 3 times, resulting in a remainder of 306.
Record the quotient 3 as the next digit in the result. 
Result so far: 27075.13
The remainder is 306 after subtracting 1014 from 1320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3060, and continue the process.

Moving on to step 10:
338 can be fit into 3060 9 times, resulting in a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 27075.139
Deduct 3042 from 3060 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 11:
If we divide 180 by 338, we get 0 and a remainder of 180.
Use 0 as the next digit of our solution. 
Result so far: 27075.139
If we take 0 away from 180, we end up with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Going ahead to step 12:
If we divide 1800 by 338, we get 5 and a remainder of 110.
Write down 5 as next digit of the result. 
Result so far: 27075.13905
If we take 1690 away from 1800, we end up with 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Going ahead to step 13:
338 goes into 1100 3 times with a remainder of 86.
Write down 3 as next digit of the result. 
Result so far: 27075.139053
Subtract 1014 from 1100 to get 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

On to step 14:
When dividing 860 by 338, we get 2 with a remainder of 184.
Write down 2 as next digit of the result. 
Result so far: 27075.1390532
The remainder is 184 after subtracting 676 from 860.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1840, and continue the process.

Going ahead to step 15:
338 can be fit into 1840 5 times, resulting in a remainder of 150.
Write down 5 as next digit of the result. 
Result so far: 27075.13905325
If we subtract 1690 from 1840, we get 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Our division results in 27075.13905325 with a remaining 1.5e-07.