We're dividing 698147 by 40 
The aim is to understand the frequency of 40 in 698147.

Advancing to step 1:
6 divided by 40 is 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 40

Going ahead to step 2:
When dividing 69 by 40, we get 1 with a remainder of 29.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 40 from 69 to get 29.
Grab the next digit (8) from the dividend, add it to 29, then carry on: 298 / 40

Going ahead to step 3:
When dividing 298 by 40, we get 7 with a remainder of 18.
Write down 7 as next digit of the result. 
Result so far: 17.0
Deduct 280 from 298 and we're left with 18.
Include the next digit (1) from the dividend after 18, then repeat: 181 / 40

On to step 4:
40 can be fit into 181 4 times, resulting in a remainder of 21.
Put 4 as the next digit of the answer. 
Result so far: 174.0
If we subtract 160 from 181, we get 21.
Include the next digit (4) from the dividend after 21, then repeat: 214 / 40

On to step 5:
40 can be fit into 214 5 times, resulting in a remainder of 14.
Use 5 as the next digit of our solution. 
Result so far: 1745.0
The remainder is 14 after subtracting 200 from 214.
Bring next digit (7) of the dividend behind the 14 and repeat the process: 147 / 40

Let's proceed to step 6:
When dividing 147 by 40, we get 3 with a remainder of 27.
The next digit of our result is 3. 
Result so far: 17453.0
The remainder is 27 after subtracting 120 from 147.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 7:
If we divide 270 by 40, we get 6 and a remainder of 30.
Record the quotient 6 as the next digit in the result. 
Result so far: 17453.6
Subtract 240 from 270 to 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.

Moving on to step 8:
If we divide 300 by 40, we get 7 and a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 17453.67
If we take 280 away from 300, we end up 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.

Step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 17453.675
Subtract 200 from 200 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.

Let's proceed 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: 17453.675
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.

Step 11:
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: 17453.675
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.

In conclusion, the division gives 17453.675 with a balance of 0.0.