We're dividing 31569918 by 506 
The aim is to understand the frequency of 506 in 31569918.

On to step 1:
If we divide 3 by 506, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 506

Going ahead to step 2:
When dividing 31 by 506, we get 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Grab the next digit (5) from the dividend, add it to 31, then carry on: 315 / 506

Moving on to step 3:
506 goes into 315 0 times with a remainder of 315.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 315 after subtracting 0 from 315.
Fetch the next digit (6) from the dividend, attach it to 315 and continue: 3156 / 506

Going ahead to step 4:
506 can be fit into 3156 6 times, resulting in a remainder of 120.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Subtract 3036 from 3156 to get 120.
Include the next digit (9) from the dividend after 120, then repeat: 1209 / 506

On to step 5:
506 goes into 1209 2 times with a remainder of 197.
The number 2 becomes the next digit in our result. 
Result so far: 62.0
Subtracting 1012 from 1209 leaves us with 197.
Take the next digit (9) from the dividend and append it to 197, then repeat: 1979 / 506

Going ahead to step 6:
506 can be fit into 1979 3 times, resulting in a remainder of 461.
Use 3 as the next digit of our solution. 
Result so far: 623.0
Subtracting 1518 from 1979 leaves us with 461.
Include the next digit (1) from the dividend after 461, then repeat: 4611 / 506

Step 7:
If we divide 4611 by 506, we get 9 and a remainder of 57.
Put 9 as the next digit of the answer. 
Result so far: 6239.0
Subtracting 4554 from 4611 leaves us with 57.
Grab the next digit (8) from the dividend, add it to 57, then carry on: 578 / 506

Moving on to step 8:
506 goes into 578 1 times with a remainder of 72.
The next digit of our result is 1. 
Result so far: 62391.0
Deduct 506 from 578 and we're left with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Going ahead to step 9:
506 goes into 720 1 times with a remainder of 214.
Record the quotient 1 as the next digit in the result. 
Result so far: 62391.1
If we subtract 506 from 720, we get 214.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2140, and continue the process.

Moving on to step 10:
When dividing 2140 by 506, we get 4 with a remainder of 116.
Write down 4 as next digit of the result. 
Result so far: 62391.14
Subtracting 2024 from 2140 leaves us with 116.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

Moving on to step 11:
The number 506 fits into 1160 2 times, leaving a remainder of 148.
Record the quotient 2 as the next digit in the result. 
Result so far: 62391.142
If we take 1012 away from 1160, we end up with 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Going ahead to step 12:
506 can be fit into 1480 2 times, resulting in a remainder of 468.
The number 2 becomes the next digit in our result. 
Result so far: 62391.1422
Subtracting 1012 from 1480 leaves us with 468.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4680, and continue the process.

The quotient of the division is 62391.1422, and the remainder is 0.00468.