We divide 902903 by 40
The aim is to understand the frequency of 40 in 902903.

On to step 1:
40 goes into 9 0 times with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Append the next digit (0) from the dividend to 9 and continue with: 90 / 40

On to step 2:
40 goes into 90 2 times with a remainder of 10.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 80 from 90, we get 10.
Grab the next digit (2) from the dividend, add it to 10, then carry on: 102 / 40

Step 3:
102 divided by 40 is 2 with a remainder of 22.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
If we subtract 80 from 102, we get 22.
Include the next digit (9) from the dividend after 22, then repeat: 229 / 40

Advancing to step 4:
When dividing 229 by 40, we get 5 with a remainder of 29.
The next digit of our result is 5. 
Result so far: 225.0
Deduct 200 from 229 and we're left with 29.
Fetch the next digit (0) from the dividend, attach it to 29 and continue: 290 / 40

Step 5:
40 goes into 290 7 times with a remainder of 10.
Record the quotient 7 as the next digit in the result. 
Result so far: 2257.0
Subtract 280 from 290 to get 10.
Grab the next digit (3) from the dividend, add it to 10, then carry on: 103 / 40

On to step 6:
If we divide 103 by 40, we get 2 and a remainder of 23.
Write down 2 as next digit of the result. 
Result so far: 22572.0
Subtract 80 from 103 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 7:
If we divide 230 by 40, we get 5 and a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 22572.5
If we subtract 200 from 230, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
40 goes into 300 7 times with a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 22572.57
Deduct 280 from 300 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.

Advancing to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 22572.575
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:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 22572.575
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.

Moving on to step 11:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 22572.575
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 22572.575, and the remainder is 0.0.