We're dividing 41522227 by 504 
The aim is to understand the frequency of 504 in 41522227.

On to step 1:
If we divide 4 by 504, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (1) from the dividend, attach it to 4 and continue: 41 / 504

On to step 2:
504 goes into 41 0 times with a remainder of 41.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 41, we end up with 41.
Fetch the next digit (5) from the dividend, attach it to 41 and continue: 415 / 504

Going ahead to step 3:
504 goes into 415 0 times with a remainder of 415.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 415, we get 415.
Take the next digit (2) from the dividend and append it to 415, then repeat: 4152 / 504

Going ahead to step 4:
504 goes into 4152 8 times with a remainder of 120.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
The remainder is 120 after subtracting 4032 from 4152.
Include the next digit (2) from the dividend after 120, then repeat: 1202 / 504

Moving on to step 5:
If we divide 1202 by 504, we get 2 and a remainder of 194.
Use 2 as the next digit of our solution. 
Result so far: 82.0
Subtracting 1008 from 1202 leaves us with 194.
Include the next digit (2) from the dividend after 194, then repeat: 1942 / 504

Step 6:
When dividing 1942 by 504, we get 3 with a remainder of 430.
Use 3 as the next digit of our solution. 
Result so far: 823.0
Subtract 1512 from 1942 to get 430.
Append the next digit (2) from the dividend to 430 and continue with: 4302 / 504

Advancing to step 7:
The number 504 fits into 4302 8 times, leaving a remainder of 270.
Use 8 as the next digit of our solution. 
Result so far: 8238.0
Deduct 4032 from 4302 and we're left with 270.
Take the next digit (7) from the dividend and append it to 270, then repeat: 2707 / 504

Moving on to step 8:
If we divide 2707 by 504, we get 5 and a remainder of 187.
Record the quotient 5 as the next digit in the result. 
Result so far: 82385.0
If we take 2520 away from 2707, we end up with 187.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1870, and continue the process.

Moving on to step 9:
If we divide 1870 by 504, we get 3 and a remainder of 358.
Write down 3 as next digit of the result. 
Result so far: 82385.3
If we take 1512 away from 1870, we end up with 358.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3580, and continue the process.

On to step 10:
If we divide 3580 by 504, we get 7 and a remainder of 52.
The next digit of our result is 7. 
Result so far: 82385.37
The remainder is 52 after subtracting 3528 from 3580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Moving on to step 11:
520 divided by 504 is 1 with a remainder of 16.
Put 1 as the next digit of the answer. 
Result so far: 82385.371
Deduct 504 from 520 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 12:
When dividing 160 by 504, we get 0 with a remainder of 160.
The next digit of our result is 0. 
Result so far: 82385.371
Subtracting 0 from 160 leaves us with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Let's proceed to step 13:
504 goes into 1600 3 times with a remainder of 88.
Use 3 as the next digit of our solution. 
Result so far: 82385.37103
If we subtract 1512 from 1600, we get 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Step 14:
504 goes into 880 1 times with a remainder of 376.
Put 1 as the next digit of the answer. 
Result so far: 82385.371031
Subtracting 504 from 880 leaves us with 376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

Going ahead to step 15:
When dividing 3760 by 504, we get 7 with a remainder of 232.
Record the quotient 7 as the next digit in the result. 
Result so far: 82385.3710317
Deduct 3528 from 3760 and we're left with 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Let's proceed to step 16:
If we divide 2320 by 504, we get 4 and a remainder of 304.
The number 4 becomes the next digit in our result. 
Result so far: 82385.37103174
Subtracting 2016 from 2320 leaves us with 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

The final result is 82385.37103174 with a remainder of 3.04e-07.