Let's divide 17162518 by 798
The aim is to understand the frequency of 798 in 17162518.

Let's proceed to step 1:
If we divide 1 by 798, we get 0 and a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 798

On to step 2:
When dividing 17 by 798, we get 0 with a remainder of 17.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 17 to get 17.
Append the next digit (1) from the dividend to 17 and continue with: 171 / 798

On to step 3:
If we divide 171 by 798, we get 0 and a remainder of 171.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 171 to get 171.
Take the next digit (6) from the dividend and append it to 171, then repeat: 1716 / 798

Advancing to step 4:
If we divide 1716 by 798, we get 2 and a remainder of 120.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 120 after subtracting 1596 from 1716.
Bring next digit (2) of the dividend behind the 120 and repeat the process: 1202 / 798

Advancing to step 5:
1202 divided by 798 is 1 with a remainder of 404.
Use 1 as the next digit of our solution. 
Result so far: 21.0
If we take 798 away from 1202, we end up with 404.
Take the next digit (5) from the dividend and append it to 404, then repeat: 4045 / 798

Let's proceed to step 6:
798 can be fit into 4045 5 times, resulting in a remainder of 55.
Use 5 as the next digit of our solution. 
Result so far: 215.0
If we subtract 3990 from 4045, we get 55.
Include the next digit (1) from the dividend after 55, then repeat: 551 / 798

On to step 7:
The number 798 fits into 551 0 times, leaving a remainder of 551.
Put 0 as the next digit of the answer. 
Result so far: 2150.0
Subtract 0 from 551 to get 551.
Bring next digit (8) of the dividend behind the 551 and repeat the process: 5518 / 798

Going ahead to step 8:
The number 798 fits into 5518 6 times, leaving a remainder of 730.
Use 6 as the next digit of our solution. 
Result so far: 21506.0
If we take 4788 away from 5518, we end up with 730.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7300, and continue the process.

Let's proceed to step 9:
7300 divided by 798 is 9 with a remainder of 118.
The next digit of our result is 9. 
Result so far: 21506.9
If we subtract 7182 from 7300, we get 118.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1180, and continue the process.

Going ahead to step 10:
The number 798 fits into 1180 1 times, leaving a remainder of 382.
Record the quotient 1 as the next digit in the result. 
Result so far: 21506.91
If we subtract 798 from 1180, we get 382.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3820, and continue the process.

Let's proceed to step 11:
The number 798 fits into 3820 4 times, leaving a remainder of 628.
The number 4 becomes the next digit in our result. 
Result so far: 21506.914
If we take 3192 away from 3820, we end up with 628.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6280, and continue the process.

Let's proceed to step 12:
798 goes into 6280 7 times with a remainder of 694.
The number 7 becomes the next digit in our result. 
Result so far: 21506.9147
Subtract 5586 from 6280 to get 694.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6940, and continue the process.

Advancing to step 13:
When dividing 6940 by 798, we get 8 with a remainder of 556.
The next digit of our result is 8. 
Result so far: 21506.91478
Subtract 6384 from 6940 to get 556.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5560, and continue the process.

Advancing to step 14:
If we divide 5560 by 798, we get 6 and a remainder of 772.
Use 6 as the next digit of our solution. 
Result so far: 21506.914786
If we subtract 4788 from 5560, we get 772.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7720, and continue the process.

Moving on to step 15:
When dividing 7720 by 798, we get 9 with a remainder of 538.
Write down 9 as next digit of the result. 
Result so far: 21506.9147869
The remainder is 538 after subtracting 7182 from 7720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5380, and continue the process.

Going ahead to step 16:
5380 divided by 798 is 6 with a remainder of 592.
The number 6 becomes the next digit in our result. 
Result so far: 21506.91478696
Deduct 4788 from 5380 and we're left with 592.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5920, and continue the process.

Our division results in 21506.91478696 with a remaining 5.92e-07.