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

Let's proceed to step 1:
The number 7 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 7

Let's proceed to step 2:
7 can be fit into 36 5 times, resulting in a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 5.0
The remainder is 1 after subtracting 35 from 36.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 7

Let's proceed to step 3:
7 can be fit into 11 1 times, resulting in a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 51.0
Deduct 7 from 11 and we're left with 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 7

Let's proceed to step 4:
7 goes into 42 6 times with a remainder of 0.
Use 6 as the next digit of our solution. 
Result so far: 516.0
Deduct 42 from 42 and we're left with 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 7

Advancing to step 5:
7 can be fit into 7 1 times, resulting in a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 5161.0
Deduct 7 from 7 and we're left with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 7

Advancing to step 6:
1 divided by 7 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 51610.0
If we subtract 0 from 1, we get 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 7:
The number 7 fits into 10 1 times, leaving a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 51610.1
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 8:
30 divided by 7 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 51610.14
Deduct 28 from 30 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 9:
7 goes into 20 2 times with a remainder of 6.
The next digit of our result is 2. 
Result so far: 51610.142
If we take 14 away from 20, we end up with 6.
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 10:
The number 7 fits into 60 8 times, leaving a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 51610.1428
Subtract 56 from 60 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 11:
If we divide 40 by 7, we get 5 and a remainder of 5.
The next digit of our result is 5. 
Result so far: 51610.14285
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 12:
The number 7 fits into 50 7 times, leaving a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 51610.142857
Deduct 49 from 50 and we're left 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.

Going ahead to step 13:
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: 51610.1428571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 14:
The number 7 fits into 30 4 times, leaving a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 51610.14285714
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.

After the division, we end up with 51610.14285714 and a remainder of 2e-09.