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

Step 1:
397 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 397

Step 2:
397 can be fit into 41 0 times, resulting in a remainder of 41.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 41, we end up with 41.
Append the next digit (0) from the dividend to 41 and continue with: 410 / 397

On to step 3:
397 can be fit into 410 1 times, resulting in a remainder of 13.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 397 from 410 and we're left with 13.
Include the next digit (1) from the dividend after 13, then repeat: 131 / 397

On to step 4:
131 divided by 397 is 0 with a remainder of 131.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Subtracting 0 from 131 leaves us with 131.
Take the next digit (7) from the dividend and append it to 131, then repeat: 1317 / 397

On to step 5:
397 goes into 1317 3 times with a remainder of 126.
The number 3 becomes the next digit in our result. 
Result so far: 103.0
If we take 1191 away from 1317, we end up with 126.
Append the next digit (4) from the dividend to 126 and continue with: 1264 / 397

Advancing to step 6:
1264 divided by 397 is 3 with a remainder of 73.
Write down 3 as next digit of the result. 
Result so far: 1033.0
Subtract 1191 from 1264 to get 73.
Fetch the next digit (9) from the dividend, attach it to 73 and continue: 739 / 397

Moving on to step 7:
739 divided by 397 is 1 with a remainder of 342.
The number 1 becomes the next digit in our result. 
Result so far: 10331.0
Subtract 397 from 739 to get 342.
Take the next digit (8) from the dividend and append it to 342, then repeat: 3428 / 397

Advancing to step 8:
The number 397 fits into 3428 8 times, leaving a remainder of 252.
The next digit of our result is 8. 
Result so far: 103318.0
Subtracting 3176 from 3428 leaves us with 252.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2520, and continue the process.

Moving on to step 9:
2520 divided by 397 is 6 with a remainder of 138.
The next digit of our result is 6. 
Result so far: 103318.6
The remainder is 138 after subtracting 2382 from 2520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1380, and continue the process.

Let's proceed to step 10:
397 goes into 1380 3 times with a remainder of 189.
Record the quotient 3 as the next digit in the result. 
Result so far: 103318.63
Subtracting 1191 from 1380 leaves us with 189.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1890, and continue the process.

Step 11:
1890 divided by 397 is 4 with a remainder of 302.
Record the quotient 4 as the next digit in the result. 
Result so far: 103318.634
The remainder is 302 after subtracting 1588 from 1890.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3020, and continue the process.

Advancing to step 12:
397 can be fit into 3020 7 times, resulting in a remainder of 241.
Write down 7 as next digit of the result. 
Result so far: 103318.6347
The remainder is 241 after subtracting 2779 from 3020.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2410, and continue the process.

Step 13:
The number 397 fits into 2410 6 times, leaving a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 103318.63476
The remainder is 28 after subtracting 2382 from 2410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 14:
280 divided by 397 is 0 with a remainder of 280.
Use 0 as the next digit of our solution. 
Result so far: 103318.63476
Deduct 0 from 280 and we're left with 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Moving on to step 15:
397 goes into 2800 7 times with a remainder of 21.
The next digit of our result is 7. 
Result so far: 103318.6347607
If we take 2779 away from 2800, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 16:
When dividing 210 by 397, we get 0 with a remainder of 210.
Write down 0 as next digit of the result. 
Result so far: 103318.6347607
If we take 0 away from 210, we end up with 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2100, and continue the process.

The final result is 103318.6347607 with a remainder of 2.1e-07.