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

Moving on to step 1:
The number 40 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 40

On to step 2:
If we divide 49 by 40, we get 1 and a remainder of 9.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 40 from 49, we get 9.
Bring next digit (1) of the dividend behind the 9 and repeat the process: 91 / 40

Moving on to step 3:
If we divide 91 by 40, we get 2 and a remainder of 11.
The next digit of our result is 2. 
Result so far: 12.0
The remainder is 11 after subtracting 80 from 91.
Grab the next digit (5) from the dividend, add it to 11, then carry on: 115 / 40

Advancing to step 4:
The number 40 fits into 115 2 times, leaving a remainder of 35.
The number 2 becomes the next digit in our result. 
Result so far: 122.0
If we take 80 away from 115, we end up with 35.
Grab the next digit (7) from the dividend, add it to 35, then carry on: 357 / 40

Advancing to step 5:
40 can be fit into 357 8 times, resulting in a remainder of 37.
Put 8 as the next digit of the answer. 
Result so far: 1228.0
Subtract 320 from 357 to get 37.
Include the next digit (0) from the dividend after 37, then repeat: 370 / 40

Step 6:
When dividing 370 by 40, we get 9 with a remainder of 10.
Put 9 as the next digit of the answer. 
Result so far: 12289.0
If we take 360 away from 370, we end up 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.

On to step 7:
When dividing 100 by 40, we get 2 with a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 12289.2
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.

Let's proceed to step 8:
40 goes into 200 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 12289.25
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.

Going ahead to step 9:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 12289.25
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.

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

Our division results in 12289.25 with a remaining 0.0.