We divide 400987 by 89
The aim is to understand the frequency of 89 in 400987.

Moving on to step 1:
The number 89 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 89

On to step 2:
When dividing 40 by 89, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Grab the next digit (0) from the dividend, add it to 40, then carry on: 400 / 89

Let's proceed to step 3:
The number 89 fits into 400 4 times, leaving a remainder of 44.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Deduct 356 from 400 and we're left with 44.
Bring next digit (9) of the dividend behind the 44 and repeat the process: 449 / 89

Moving on to step 4:
The number 89 fits into 449 5 times, leaving a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 45.0
Subtracting 445 from 449 leaves us with 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 89

Advancing to step 5:
The number 89 fits into 48 0 times, leaving a remainder of 48.
Write down 0 as next digit of the result. 
Result so far: 450.0
The remainder is 48 after subtracting 0 from 48.
Take the next digit (7) from the dividend and append it to 48, then repeat: 487 / 89

On to step 6:
The number 89 fits into 487 5 times, leaving a remainder of 42.
Put 5 as the next digit of the answer. 
Result so far: 4505.0
Deduct 445 from 487 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Step 7:
420 divided by 89 is 4 with a remainder of 64.
Use 4 as the next digit of our solution. 
Result so far: 4505.4
Deduct 356 from 420 and we're left with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Going ahead to step 8:
The number 89 fits into 640 7 times, leaving a remainder of 17.
Record the quotient 7 as the next digit in the result. 
Result so far: 4505.47
If we take 623 away from 640, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 9:
89 can be fit into 170 1 times, resulting in a remainder of 81.
The next digit of our result is 1. 
Result so far: 4505.471
Subtract 89 from 170 to get 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 810, and continue the process.

On to step 10:
810 divided by 89 is 9 with a remainder of 9.
Write down 9 as next digit of the result. 
Result so far: 4505.4719
If we take 801 away from 810, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 11:
If we divide 90 by 89, we get 1 and a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 4505.47191
If we subtract 89 from 90, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 12:
89 can be fit into 10 0 times, resulting in a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 4505.47191
If we take 0 away from 10, 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 13:
If we divide 100 by 89, we get 1 and a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 4505.4719101
Subtract 89 from 100 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 14:
89 can be fit into 110 1 times, resulting in a remainder of 21.
The number 1 becomes the next digit in our result. 
Result so far: 4505.47191011
Subtracting 89 from 110 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

The final outcome is 4505.47191011, with a leftover of 2.1e-08.