40571 ÷ 8 
The aim is to understand the frequency of 8 in 40571.

Moving on to step 1:
8 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 8

Advancing to step 2:
If we divide 40 by 8, we get 5 and a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we take 40 away from 40, we end up with 0.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 8

Going ahead to step 3:
8 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 50.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (7) of the dividend behind the 5 and repeat the process: 57 / 8

Going ahead to step 4:
8 goes into 57 7 times with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 507.0
Subtract 56 from 57 to get 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 8

Going ahead to step 5:
8 goes into 11 1 times with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 5071.0
Subtracting 8 from 11 leaves us 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 6:
30 divided by 8 is 3 with a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 5071.3
If we take 24 away from 30, 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.

Step 7:
60 divided by 8 is 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 5071.37
If we subtract 56 from 60, we 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 8:
8 goes into 40 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 5071.375
Subtracting 40 from 40 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
8 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 5071.375
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 10:
If we divide 0 by 8, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 5071.375
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 5071.375, and the remainder is 0.0.