We're dividing 9015957 by 407 
The aim is to understand the frequency of 407 in 9015957.

Going ahead to step 1:
9 divided by 407 is 0 with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 407

Moving on to step 2:
When dividing 90 by 407, we get 0 with a remainder of 90.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 90 and we're left with 90.
Grab the next digit (1) from the dividend, add it to 90, then carry on: 901 / 407

Going ahead to step 3:
407 can be fit into 901 2 times, resulting in a remainder of 87.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 814 from 901 and we're left with 87.
Take the next digit (5) from the dividend and append it to 87, then repeat: 875 / 407

Step 4:
The number 407 fits into 875 2 times, leaving a remainder of 61.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
If we take 814 away from 875, we end up with 61.
Take the next digit (9) from the dividend and append it to 61, then repeat: 619 / 407

Step 5:
407 goes into 619 1 times with a remainder of 212.
Use 1 as the next digit of our solution. 
Result so far: 221.0
If we take 407 away from 619, we end up with 212.
Bring next digit (5) of the dividend behind the 212 and repeat the process: 2125 / 407

Moving on to step 6:
The number 407 fits into 2125 5 times, leaving a remainder of 90.
Record the quotient 5 as the next digit in the result. 
Result so far: 2215.0
Deduct 2035 from 2125 and we're left with 90.
Include the next digit (7) from the dividend after 90, then repeat: 907 / 407

Step 7:
When dividing 907 by 407, we get 2 with a remainder of 93.
Write down 2 as next digit of the result. 
Result so far: 22152.0
If we subtract 814 from 907, we get 93.
Since there are no more digits in the dividend, we add a zero to the remainder making it 930, and continue the process.

Step 8:
The number 407 fits into 930 2 times, leaving a remainder of 116.
Put 2 as the next digit of the answer. 
Result so far: 22152.2
Subtract 814 from 930 to get 116.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

Going ahead to step 9:
1160 divided by 407 is 2 with a remainder of 346.
Put 2 as the next digit of the answer. 
Result so far: 22152.22
If we subtract 814 from 1160, we get 346.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3460, and continue the process.

The final outcome is 22152.22, with a leftover of 0.346.