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

Step 1:
3 divided by 40 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 40

Going ahead to step 2:
The number 40 fits into 31 0 times, leaving a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Bring next digit (5) of the dividend behind the 31 and repeat the process: 315 / 40

Moving on to step 3:
If we divide 315 by 40, we get 7 and a remainder of 35.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we take 280 away from 315, we end up with 35.
Fetch the next digit (5) from the dividend, attach it to 35 and continue: 355 / 40

Moving on to step 4:
When dividing 355 by 40, we get 8 with a remainder of 35.
The next digit of our result is 8. 
Result so far: 78.0
If we subtract 320 from 355, we get 35.
Take the next digit (3) from the dividend and append it to 35, then repeat: 353 / 40

Advancing to step 5:
40 goes into 353 8 times with a remainder of 33.
Write down 8 as next digit of the result. 
Result so far: 788.0
The remainder is 33 after subtracting 320 from 353.
Bring next digit (6) of the dividend behind the 33 and repeat the process: 336 / 40

Going ahead to step 6:
If we divide 336 by 40, we get 8 and a remainder of 16.
The next digit of our result is 8. 
Result so far: 7888.0
If we subtract 320 from 336, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 7:
When dividing 160 by 40, we get 4 with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 7888.4
If we subtract 160 from 160, 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.

On to step 8:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 7888.4
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.

On to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 7888.4
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.

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