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

Advancing to step 1:
The number 40 fits into 8 0 times, leaving a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Take the next digit (3) from the dividend and append it to 8, then repeat: 83 / 40

Going ahead to step 2:
40 can be fit into 83 2 times, resulting in a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 2.0
Deduct 80 from 83 and we're left with 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 40

Advancing to step 3:
40 goes into 36 0 times with a remainder of 36.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
If we subtract 0 from 36, we get 36.
Take the next digit (5) from the dividend and append it to 36, then repeat: 365 / 40

Going ahead to step 4:
When dividing 365 by 40, we get 9 with a remainder of 5.
Use 9 as the next digit of our solution. 
Result so far: 209.0
Deduct 360 from 365 and we're left with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 40

On to step 5:
The number 40 fits into 58 1 times, leaving a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 2091.0
The remainder is 18 after subtracting 40 from 58.
Grab the next digit (7) from the dividend, add it to 18, then carry on: 187 / 40

Step 6:
When dividing 187 by 40, we get 4 with a remainder of 27.
The next digit of our result is 4. 
Result so far: 20914.0
Subtracting 160 from 187 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 7:
When dividing 270 by 40, we get 6 with a remainder of 30.
The number 6 becomes the next digit in our result. 
Result so far: 20914.6
If we take 240 away from 270, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 20914.67
Subtract 280 from 300 to 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.

Moving on to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 20914.675
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.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20914.675
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.

Advancing to step 11:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 20914.675
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 20914.675 with a balance of 0.0.