800857 divided by 40 
The aim is to understand the frequency of 40 in 800857.

Moving on to step 1:
8 divided by 40 is 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 40

Step 2:
When dividing 80 by 40, we get 2 with a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
If we take 80 away from 80, we end up with 0.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 40

Step 3:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20.0
Deduct 0 from 0 and we're left with 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 40

On to step 4:
The number 40 fits into 8 0 times, leaving a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 200.0
Subtract 0 from 8 to get 8.
Fetch the next digit (5) from the dividend, attach it to 8 and continue: 85 / 40

Going ahead to step 5:
40 can be fit into 85 2 times, resulting in a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 2002.0
Subtract 80 from 85 to get 5.
Grab the next digit (7) from the dividend, add it to 5, then carry on: 57 / 40

Moving on to step 6:
If we divide 57 by 40, we get 1 and a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 20021.0
If we take 40 away from 57, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 7:
40 goes into 170 4 times with a remainder of 10.
Put 4 as the next digit of the answer. 
Result so far: 20021.4
Deduct 160 from 170 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 8:
100 divided by 40 is 2 with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 20021.42
If we subtract 80 from 100, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 20021.425
Subtract 200 from 200 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.

Advancing to step 10:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20021.425
Subtracting 0 from 0 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.

Step 11:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 20021.425
If we take 0 away from 0, we end up 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.

Our division results in 20021.425 with a remaining 0.0.