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

On to step 1:
7 divided by 40 is 0 with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 7 and we're left with 7.
Grab the next digit (4) from the dividend, add it to 7, then carry on: 74 / 40

Step 2:
40 can be fit into 74 1 times, resulting in a remainder of 34.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 40 from 74 to get 34.
Grab the next digit (0) from the dividend, add it to 34, then carry on: 340 / 40

Moving on to step 3:
40 can be fit into 340 8 times, resulting in a remainder of 20.
Use 8 as the next digit of our solution. 
Result so far: 18.0
The remainder is 20 after subtracting 320 from 340.
Append the next digit (0) from the dividend to 20 and continue with: 200 / 40

Step 4:
200 divided by 40 is 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 185.0
Subtract 200 from 200 to get 0.
Grab the next digit (4) from the dividend, add it to 0, then carry on: 4 / 40

Advancing to step 5:
When dividing 4 by 40, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 1850.0
If we subtract 0 from 4, we get 4.
Fetch the next digit (1) from the dividend, attach it to 4 and continue: 41 / 40

Advancing to step 6:
When dividing 41 by 40, we get 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 18501.0
The remainder is 1 after subtracting 40 from 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 7:
10 divided by 40 is 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 18501.0
The remainder is 10 after subtracting 0 from 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:
When dividing 100 by 40, we get 2 with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 18501.02
Subtract 80 from 100 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.

Advancing to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 18501.025
Deduct 200 from 200 and we're left 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.

Step 10:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 18501.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.

Going ahead to step 11:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 18501.025
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.

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