We're dividing 6731041 by 797 
The aim is to understand the frequency of 797 in 6731041.

Moving on to step 1:
If we divide 6 by 797, we get 0 and a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 797

Moving on to step 2:
797 goes into 67 0 times with a remainder of 67.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 67, we get 67.
Append the next digit (3) from the dividend to 67 and continue with: 673 / 797

Advancing to step 3:
797 can be fit into 673 0 times, resulting in a remainder of 673.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 673 to get 673.
Take the next digit (1) from the dividend and append it to 673, then repeat: 6731 / 797

Going ahead to step 4:
6731 divided by 797 is 8 with a remainder of 355.
Use 8 as the next digit of our solution. 
Result so far: 8.0
If we take 6376 away from 6731, we end up with 355.
Fetch the next digit (0) from the dividend, attach it to 355 and continue: 3550 / 797

Let's proceed to step 5:
3550 divided by 797 is 4 with a remainder of 362.
The number 4 becomes the next digit in our result. 
Result so far: 84.0
Subtract 3188 from 3550 to get 362.
Include the next digit (4) from the dividend after 362, then repeat: 3624 / 797

Moving on to step 6:
3624 divided by 797 is 4 with a remainder of 436.
Write down 4 as next digit of the result. 
Result so far: 844.0
Deduct 3188 from 3624 and we're left with 436.
Bring next digit (1) of the dividend behind the 436 and repeat the process: 4361 / 797

Advancing to step 7:
4361 divided by 797 is 5 with a remainder of 376.
Put 5 as the next digit of the answer. 
Result so far: 8445.0
The remainder is 376 after subtracting 3985 from 4361.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

Step 8:
The number 797 fits into 3760 4 times, leaving a remainder of 572.
Use 4 as the next digit of our solution. 
Result so far: 8445.4
Subtracting 3188 from 3760 leaves us with 572.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5720, and continue the process.

Going ahead to step 9:
797 goes into 5720 7 times with a remainder of 141.
Use 7 as the next digit of our solution. 
Result so far: 8445.47
Subtract 5579 from 5720 to get 141.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1410, and continue the process.

Let's proceed to step 10:
If we divide 1410 by 797, we get 1 and a remainder of 613.
Put 1 as the next digit of the answer. 
Result so far: 8445.471
Subtracting 797 from 1410 leaves us with 613.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6130, and continue the process.

Moving on to step 11:
797 can be fit into 6130 7 times, resulting in a remainder of 551.
The next digit of our result is 7. 
Result so far: 8445.4717
If we take 5579 away from 6130, we end up with 551.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5510, and continue the process.

Let's proceed to step 12:
The number 797 fits into 5510 6 times, leaving a remainder of 728.
The number 6 becomes the next digit in our result. 
Result so far: 8445.47176
Deduct 4782 from 5510 and we're left with 728.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7280, and continue the process.

Let's proceed to step 13:
797 can be fit into 7280 9 times, resulting in a remainder of 107.
Record the quotient 9 as the next digit in the result. 
Result so far: 8445.471769
Subtracting 7173 from 7280 leaves us with 107.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1070, and continue the process.

On to step 14:
797 goes into 1070 1 times with a remainder of 273.
Use 1 as the next digit of our solution. 
Result so far: 8445.4717691
If we subtract 797 from 1070, we get 273.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2730, and continue the process.

Let's proceed to step 15:
The number 797 fits into 2730 3 times, leaving a remainder of 339.
Write down 3 as next digit of the result. 
Result so far: 8445.47176913
Subtract 2391 from 2730 to get 339.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3390, and continue the process.

Our division results in 8445.47176913 with a remaining 3.39e-07.