We look at the division of 40290368 by 522 
The aim is to understand the frequency of 522 in 40290368.

Step 1:
4 divided by 522 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 522

On to step 2:
When dividing 40 by 522, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Take the next digit (2) from the dividend and append it to 40, then repeat: 402 / 522

Let's proceed to step 3:
402 divided by 522 is 0 with a remainder of 402.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 402 leaves us with 402.
Bring next digit (9) of the dividend behind the 402 and repeat the process: 4029 / 522

On to step 4:
522 goes into 4029 7 times with a remainder of 375.
Write down 7 as next digit of the result. 
Result so far: 7.0
Deduct 3654 from 4029 and we're left with 375.
Bring next digit (0) of the dividend behind the 375 and repeat the process: 3750 / 522

Let's proceed to step 5:
522 can be fit into 3750 7 times, resulting in a remainder of 96.
Write down 7 as next digit of the result. 
Result so far: 77.0
If we subtract 3654 from 3750, we get 96.
Fetch the next digit (3) from the dividend, attach it to 96 and continue: 963 / 522

Let's proceed to step 6:
If we divide 963 by 522, we get 1 and a remainder of 441.
Record the quotient 1 as the next digit in the result. 
Result so far: 771.0
If we subtract 522 from 963, we get 441.
Append the next digit (6) from the dividend to 441 and continue with: 4416 / 522

Going ahead to step 7:
522 can be fit into 4416 8 times, resulting in a remainder of 240.
The next digit of our result is 8. 
Result so far: 7718.0
If we subtract 4176 from 4416, we get 240.
Grab the next digit (8) from the dividend, add it to 240, then carry on: 2408 / 522

Step 8:
The number 522 fits into 2408 4 times, leaving a remainder of 320.
The next digit of our result is 4. 
Result so far: 77184.0
The remainder is 320 after subtracting 2088 from 2408.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

Advancing to step 9:
522 can be fit into 3200 6 times, resulting in a remainder of 68.
Write down 6 as next digit of the result. 
Result so far: 77184.6
Deduct 3132 from 3200 and we're left with 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Advancing to step 10:
The number 522 fits into 680 1 times, leaving a remainder of 158.
Put 1 as the next digit of the answer. 
Result so far: 77184.61
Subtracting 522 from 680 leaves us with 158.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1580, and continue the process.

Going ahead to step 11:
The number 522 fits into 1580 3 times, leaving a remainder of 14.
Write down 3 as next digit of the result. 
Result so far: 77184.613
Subtract 1566 from 1580 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 12:
522 can be fit into 140 0 times, resulting in a remainder of 140.
The number 0 becomes the next digit in our result. 
Result so far: 77184.613
The remainder is 140 after subtracting 0 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Advancing to step 13:
522 can be fit into 1400 2 times, resulting in a remainder of 356.
The next digit of our result is 2. 
Result so far: 77184.61302
The remainder is 356 after subtracting 1044 from 1400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3560, and continue the process.

Let's proceed to step 14:
The number 522 fits into 3560 6 times, leaving a remainder of 428.
Write down 6 as next digit of the result. 
Result so far: 77184.613026
Deduct 3132 from 3560 and we're left with 428.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4280, and continue the process.

Going ahead to step 15:
When dividing 4280 by 522, we get 8 with a remainder of 104.
The next digit of our result is 8. 
Result so far: 77184.6130268
If we take 4176 away from 4280, we end up with 104.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

Moving on to step 16:
If we divide 1040 by 522, we get 1 and a remainder of 518.
The next digit of our result is 1. 
Result so far: 77184.61302681
If we take 522 away from 1040, we end up with 518.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5180, and continue the process.

The final result is 77184.61302681 with a remainder of 5.18e-07.