Let's divide 163141 by 7
The aim is to understand the frequency of 7 in 163141.

On to step 1:
If we divide 1 by 7, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 7

Going ahead to step 2:
The number 7 fits into 16 2 times, leaving a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 2 after subtracting 14 from 16.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 7

Advancing to step 3:
7 goes into 23 3 times with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 23.0
Subtract 21 from 23 to get 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 7

Moving on to step 4:
When dividing 21 by 7, we get 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 233.0
Deduct 21 from 21 and we're left with 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 7

Going ahead to step 5:
If we divide 4 by 7, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 2330.0
If we subtract 0 from 4, we get 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 7

Going ahead to step 6:
7 can be fit into 41 5 times, resulting in a remainder of 6.
Record the quotient 5 as the next digit in the result. 
Result so far: 23305.0
The remainder is 6 after subtracting 35 from 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 7:
7 goes into 60 8 times with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 23305.8
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 8:
When dividing 40 by 7, we get 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 23305.85
If we subtract 35 from 40, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 9:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 23305.857
Subtracting 49 from 50 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 10:
If we divide 10 by 7, we get 1 and a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 23305.8571
If we take 7 away from 10, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 11:
The number 7 fits into 30 4 times, leaving a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 23305.85714
Subtract 28 from 30 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 12:
The number 7 fits into 20 2 times, leaving a remainder of 6.
The next digit of our result is 2. 
Result so far: 23305.857142
The remainder is 6 after subtracting 14 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 13:
7 can be fit into 60 8 times, resulting in a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 23305.8571428
Deduct 56 from 60 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 14:
7 goes into 40 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 23305.85714285
If we subtract 35 from 40, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The quotient of the division is 23305.85714285, and the remainder is 5e-09.