We divide 12515997 by 316
The aim is to understand the frequency of 316 in 12515997.

Step 1:
When dividing 1 by 316, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 316

Advancing to step 2:
316 can be fit into 12 0 times, resulting in a remainder of 12.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 12, we get 12.
Append the next digit (5) from the dividend to 12 and continue with: 125 / 316

On to step 3:
If we divide 125 by 316, we get 0 and a remainder of 125.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 125 after subtracting 0 from 125.
Bring next digit (1) of the dividend behind the 125 and repeat the process: 1251 / 316

Let's proceed to step 4:
The number 316 fits into 1251 3 times, leaving a remainder of 303.
The next digit of our result is 3. 
Result so far: 3.0
Subtracting 948 from 1251 leaves us with 303.
Append the next digit (5) from the dividend to 303 and continue with: 3035 / 316

Let's proceed to step 5:
316 goes into 3035 9 times with a remainder of 191.
The next digit of our result is 9. 
Result so far: 39.0
Subtracting 2844 from 3035 leaves us with 191.
Take the next digit (9) from the dividend and append it to 191, then repeat: 1919 / 316

Step 6:
1919 divided by 316 is 6 with a remainder of 23.
Record the quotient 6 as the next digit in the result. 
Result so far: 396.0
Deduct 1896 from 1919 and we're left with 23.
Fetch the next digit (9) from the dividend, attach it to 23 and continue: 239 / 316

On to step 7:
When dividing 239 by 316, we get 0 with a remainder of 239.
Write down 0 as next digit of the result. 
Result so far: 3960.0
If we take 0 away from 239, we end up with 239.
Take the next digit (7) from the dividend and append it to 239, then repeat: 2397 / 316

Step 8:
When dividing 2397 by 316, we get 7 with a remainder of 185.
Use 7 as the next digit of our solution. 
Result so far: 39607.0
Subtracting 2212 from 2397 leaves us with 185.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1850, and continue the process.

On to step 9:
If we divide 1850 by 316, we get 5 and a remainder of 270.
Write down 5 as next digit of the result. 
Result so far: 39607.5
Deduct 1580 from 1850 and we're left with 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

Advancing to step 10:
When dividing 2700 by 316, we get 8 with a remainder of 172.
The next digit of our result is 8. 
Result so far: 39607.58
If we subtract 2528 from 2700, we get 172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

On to step 11:
When dividing 1720 by 316, we get 5 with a remainder of 140.
Put 5 as the next digit of the answer. 
Result so far: 39607.585
Deduct 1580 from 1720 and we're left with 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Going ahead to step 12:
1400 divided by 316 is 4 with a remainder of 136.
Record the quotient 4 as the next digit in the result. 
Result so far: 39607.5854
The remainder is 136 after subtracting 1264 from 1400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

On to step 13:
When dividing 1360 by 316, we get 4 with a remainder of 96.
Write down 4 as next digit of the result. 
Result so far: 39607.58544
Subtract 1264 from 1360 to get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

The final outcome is 39607.58544, with a leftover of 9.6e-05.