We divide 501881 by 39
The aim is to understand the frequency of 39 in 501881.

Let's proceed to step 1:
39 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 39

Moving on to step 2:
When dividing 50 by 39, we get 1 with a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 39 from 50, we get 11.
Append the next digit (1) from the dividend to 11 and continue with: 111 / 39

Advancing to step 3:
39 can be fit into 111 2 times, resulting in a remainder of 33.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Deduct 78 from 111 and we're left with 33.
Grab the next digit (8) from the dividend, add it to 33, then carry on: 338 / 39

Let's proceed to step 4:
The number 39 fits into 338 8 times, leaving a remainder of 26.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
If we subtract 312 from 338, we get 26.
Take the next digit (8) from the dividend and append it to 26, then repeat: 268 / 39

Step 5:
If we divide 268 by 39, we get 6 and a remainder of 34.
Write down 6 as next digit of the result. 
Result so far: 1286.0
Deduct 234 from 268 and we're left with 34.
Fetch the next digit (1) from the dividend, attach it to 34 and continue: 341 / 39

Advancing to step 6:
The number 39 fits into 341 8 times, leaving a remainder of 29.
Write down 8 as next digit of the result. 
Result so far: 12868.0
Deduct 312 from 341 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 7:
39 can be fit into 290 7 times, resulting in a remainder of 17.
Write down 7 as next digit of the result. 
Result so far: 12868.7
Subtract 273 from 290 to get 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 8:
If we divide 170 by 39, we get 4 and a remainder of 14.
The next digit of our result is 4. 
Result so far: 12868.74
If we take 156 away from 170, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
When dividing 140 by 39, we get 3 with a remainder of 23.
Record the quotient 3 as the next digit in the result. 
Result so far: 12868.743
Subtract 117 from 140 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 10:
39 goes into 230 5 times with a remainder of 35.
Record the quotient 5 as the next digit in the result. 
Result so far: 12868.7435
If we take 195 away from 230, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 11:
The number 39 fits into 350 8 times, leaving a remainder of 38.
Put 8 as the next digit of the answer. 
Result so far: 12868.74358
If we subtract 312 from 350, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 12:
If we divide 380 by 39, we get 9 and a remainder of 29.
Use 9 as the next digit of our solution. 
Result so far: 12868.743589
Deduct 351 from 380 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 13:
If we divide 290 by 39, we get 7 and a remainder of 17.
Use 7 as the next digit of our solution. 
Result so far: 12868.7435897
The remainder is 17 after subtracting 273 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 14:
If we divide 170 by 39, we get 4 and a remainder of 14.
Use 4 as the next digit of our solution. 
Result so far: 12868.74358974
If we take 156 away from 170, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

After the division, we end up with 12868.74358974 and a remainder of 1.4e-08.