We look at the division of 40489431 by 822 
The aim is to understand the frequency of 822 in 40489431.

Moving on to step 1:
If we divide 4 by 822, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 822

Step 2:
822 goes into 40 0 times with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Append the next digit (4) from the dividend to 40 and continue with: 404 / 822

Let's proceed to step 3:
822 goes into 404 0 times with a remainder of 404.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 404 leaves us with 404.
Fetch the next digit (8) from the dividend, attach it to 404 and continue: 4048 / 822

On to step 4:
822 goes into 4048 4 times with a remainder of 760.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
If we subtract 3288 from 4048, we get 760.
Fetch the next digit (9) from the dividend, attach it to 760 and continue: 7609 / 822

Advancing to step 5:
822 goes into 7609 9 times with a remainder of 211.
Record the quotient 9 as the next digit in the result. 
Result so far: 49.0
Deduct 7398 from 7609 and we're left with 211.
Bring next digit (4) of the dividend behind the 211 and repeat the process: 2114 / 822

Advancing to step 6:
822 goes into 2114 2 times with a remainder of 470.
The number 2 becomes the next digit in our result. 
Result so far: 492.0
If we take 1644 away from 2114, we end up with 470.
Include the next digit (3) from the dividend after 470, then repeat: 4703 / 822

Step 7:
When dividing 4703 by 822, we get 5 with a remainder of 593.
Record the quotient 5 as the next digit in the result. 
Result so far: 4925.0
The remainder is 593 after subtracting 4110 from 4703.
Fetch the next digit (1) from the dividend, attach it to 593 and continue: 5931 / 822

Let's proceed to step 8:
When dividing 5931 by 822, we get 7 with a remainder of 177.
The next digit of our result is 7. 
Result so far: 49257.0
Subtracting 5754 from 5931 leaves us with 177.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1770, and continue the process.

Going ahead to step 9:
The number 822 fits into 1770 2 times, leaving a remainder of 126.
The number 2 becomes the next digit in our result. 
Result so far: 49257.2
The remainder is 126 after subtracting 1644 from 1770.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1260, and continue the process.

On to step 10:
822 can be fit into 1260 1 times, resulting in a remainder of 438.
Write down 1 as next digit of the result. 
Result so far: 49257.21
Subtracting 822 from 1260 leaves us with 438.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4380, and continue the process.

Step 11:
822 goes into 4380 5 times with a remainder of 270.
Use 5 as the next digit of our solution. 
Result so far: 49257.215
If we subtract 4110 from 4380, we get 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

Going ahead to step 12:
822 can be fit into 2700 3 times, resulting in a remainder of 234.
Record the quotient 3 as the next digit in the result. 
Result so far: 49257.2153
If we take 2466 away from 2700, we end up with 234.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2340, and continue the process.

Advancing to step 13:
When dividing 2340 by 822, we get 2 with a remainder of 696.
Use 2 as the next digit of our solution. 
Result so far: 49257.21532
The remainder is 696 after subtracting 1644 from 2340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6960, and continue the process.

Going ahead to step 14:
822 goes into 6960 8 times with a remainder of 384.
Put 8 as the next digit of the answer. 
Result so far: 49257.215328
If we take 6576 away from 6960, we end up with 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Let's proceed to step 15:
822 goes into 3840 4 times with a remainder of 552.
The number 4 becomes the next digit in our result. 
Result so far: 49257.2153284
If we take 3288 away from 3840, we end up with 552.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5520, and continue the process.

Step 16:
822 can be fit into 5520 6 times, resulting in a remainder of 588.
Write down 6 as next digit of the result. 
Result so far: 49257.21532846
If we take 4932 away from 5520, we end up with 588.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5880, and continue the process.

The final outcome is 49257.21532846, with a leftover of 5.88e-07.