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

On to step 1:
5 divided by 7 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 7

Let's proceed to step 2:
The number 7 fits into 56 8 times, leaving a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we subtract 56 from 56, we get 0.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 7

Going ahead to step 3:
The number 7 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 80.0
If we subtract 0 from 1, we get 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 7

Step 4:
If we divide 15 by 7, we get 2 and a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 802.0
The remainder is 1 after subtracting 14 from 15.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 7

Advancing to step 5:
7 can be fit into 15 2 times, resulting in a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 8022.0
Subtracting 14 from 15 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.

Going ahead to step 6:
If we divide 10 by 7, we get 1 and a remainder of 3.
The next digit of our result is 1. 
Result so far: 8022.1
If we subtract 7 from 10, we 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.

Moving on to step 7:
30 divided by 7 is 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 8022.14
Subtracting 28 from 30 leaves us 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 8:
7 can be fit into 20 2 times, resulting in a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 8022.142
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.

Advancing to step 9:
When dividing 60 by 7, we get 8 with a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 8022.1428
Subtracting 56 from 60 leaves us 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 10:
If we divide 40 by 7, we get 5 and a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 8022.14285
Subtract 35 from 40 to 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.

Moving on to step 11:
7 goes into 50 7 times with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 8022.142857
Subtract 49 from 50 to 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.

Let's proceed to step 12:
The number 7 fits into 10 1 times, leaving a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 8022.1428571
The remainder is 3 after subtracting 7 from 10.
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 13:
If we divide 30 by 7, we get 4 and a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 8022.14285714
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.

The final result is 8022.14285714 with a remainder of 2e-09.