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

Step 1:
40 can be fit into 6 0 times, resulting in a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 40

Going ahead to step 2:
40 goes into 63 1 times with a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 23 after subtracting 40 from 63.
Include the next digit (1) from the dividend after 23, then repeat: 231 / 40

On to step 3:
When dividing 231 by 40, we get 5 with a remainder of 31.
Write down 5 as next digit of the result. 
Result so far: 15.0
Subtract 200 from 231 to get 31.
Grab the next digit (5) from the dividend, add it to 31, then carry on: 315 / 40

Going ahead to step 4:
40 can be fit into 315 7 times, resulting in a remainder of 35.
Write down 7 as next digit of the result. 
Result so far: 157.0
Deduct 280 from 315 and we're left with 35.
Grab the next digit (6) from the dividend, add it to 35, then carry on: 356 / 40

Going ahead to step 5:
When dividing 356 by 40, we get 8 with a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 1578.0
Subtract 320 from 356 to get 36.
Append the next digit (1) from the dividend to 36 and continue with: 361 / 40

Step 6:
When dividing 361 by 40, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 15789.0
If we subtract 360 from 361, we 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 7:
When dividing 10 by 40, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 15789.0
Subtracting 0 from 10 leaves us 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.

Let's proceed 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: 15789.02
Deduct 80 from 100 and we're left with 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:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 15789.025
If we subtract 200 from 200, 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.

Going ahead to step 10:
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: 15789.025
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.

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

The final result is 15789.025 with a remainder of 0.0.