Let's divide 630971 by 40
The aim is to understand the frequency of 40 in 630971.

Step 1:
40 goes into 6 0 times with 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

On to step 2:
40 goes into 63 1 times with a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 23 after subtracting 40 from 63.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 40

Step 3:
If we divide 230 by 40, we get 5 and a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 15.0
Deduct 200 from 230 and we're left with 30.
Append the next digit (9) from the dividend to 30 and continue with: 309 / 40

Let's proceed to step 4:
If we divide 309 by 40, we get 7 and a remainder of 29.
The next digit of our result is 7. 
Result so far: 157.0
Subtracting 280 from 309 leaves us with 29.
Grab the next digit (7) from the dividend, add it to 29, then carry on: 297 / 40

Let's proceed to step 5:
40 goes into 297 7 times with a remainder of 17.
Put 7 as the next digit of the answer. 
Result so far: 1577.0
Subtract 280 from 297 to get 17.
Take the next digit (1) from the dividend and append it to 17, then repeat: 171 / 40

Going ahead to step 6:
40 goes into 171 4 times with a remainder of 11.
The number 4 becomes the next digit in our result. 
Result so far: 15774.0
If we take 160 away from 171, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 7:
110 divided by 40 is 2 with a remainder of 30.
The next digit of our result is 2. 
Result so far: 15774.2
If we take 80 away from 110, 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.

Advancing to step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 15774.27
If we subtract 280 from 300, 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:
If we divide 200 by 40, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 15774.275
The remainder is 0 after subtracting 200 from 200.
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:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 15774.275
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.

Step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 15774.275
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 outcome is 15774.275, with a leftover of 0.0.