We divide 5140413 by 394
The aim is to understand the frequency of 394 in 5140413.

Advancing to step 1:
When dividing 5 by 394, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 394

Moving on to step 2:
If we divide 51 by 394, we get 0 and a remainder of 51.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 51, we get 51.
Include the next digit (4) from the dividend after 51, then repeat: 514 / 394

Let's proceed to step 3:
394 goes into 514 1 times with a remainder of 120.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 120 after subtracting 394 from 514.
Bring next digit (0) of the dividend behind the 120 and repeat the process: 1200 / 394

Going ahead to step 4:
394 can be fit into 1200 3 times, resulting in a remainder of 18.
Put 3 as the next digit of the answer. 
Result so far: 13.0
If we subtract 1182 from 1200, we get 18.
Append the next digit (4) from the dividend to 18 and continue with: 184 / 394

Let's proceed to step 5:
If we divide 184 by 394, we get 0 and a remainder of 184.
The next digit of our result is 0. 
Result so far: 130.0
Subtract 0 from 184 to get 184.
Grab the next digit (1) from the dividend, add it to 184, then carry on: 1841 / 394

Going ahead to step 6:
1841 divided by 394 is 4 with a remainder of 265.
The number 4 becomes the next digit in our result. 
Result so far: 1304.0
If we take 1576 away from 1841, we end up with 265.
Take the next digit (3) from the dividend and append it to 265, then repeat: 2653 / 394

Step 7:
If we divide 2653 by 394, we get 6 and a remainder of 289.
Put 6 as the next digit of the answer. 
Result so far: 13046.0
The remainder is 289 after subtracting 2364 from 2653.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2890, and continue the process.

Let's proceed to step 8:
The number 394 fits into 2890 7 times, leaving a remainder of 132.
Put 7 as the next digit of the answer. 
Result so far: 13046.7
Deduct 2758 from 2890 and we're left with 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Going ahead to step 9:
394 can be fit into 1320 3 times, resulting in a remainder of 138.
Record the quotient 3 as the next digit in the result. 
Result so far: 13046.73
The remainder is 138 after subtracting 1182 from 1320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1380, and continue the process.

Advancing to step 10:
1380 divided by 394 is 3 with a remainder of 198.
Put 3 as the next digit of the answer. 
Result so far: 13046.733
Deduct 1182 from 1380 and we're left with 198.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1980, and continue the process.

The final outcome is 13046.733, with a leftover of 0.0198.