12789778 divided by 583 
The aim is to understand the frequency of 583 in 12789778.

Moving on to step 1:
1 divided by 583 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 583

Going ahead to step 2:
583 goes into 12 0 times with a remainder of 12.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 12 to get 12.
Take the next digit (7) from the dividend and append it to 12, then repeat: 127 / 583

Advancing to step 3:
127 divided by 583 is 0 with a remainder of 127.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 127, we end up with 127.
Take the next digit (8) from the dividend and append it to 127, then repeat: 1278 / 583

Advancing to step 4:
583 goes into 1278 2 times with a remainder of 112.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 1166 from 1278 to get 112.
Take the next digit (9) from the dividend and append it to 112, then repeat: 1129 / 583

On to step 5:
If we divide 1129 by 583, we get 1 and a remainder of 546.
Write down 1 as next digit of the result. 
Result so far: 21.0
Subtracting 583 from 1129 leaves us with 546.
Fetch the next digit (7) from the dividend, attach it to 546 and continue: 5467 / 583

Step 6:
5467 divided by 583 is 9 with a remainder of 220.
Use 9 as the next digit of our solution. 
Result so far: 219.0
The remainder is 220 after subtracting 5247 from 5467.
Bring next digit (7) of the dividend behind the 220 and repeat the process: 2207 / 583

Step 7:
When dividing 2207 by 583, we get 3 with a remainder of 458.
Put 3 as the next digit of the answer. 
Result so far: 2193.0
If we subtract 1749 from 2207, we get 458.
Include the next digit (8) from the dividend after 458, then repeat: 4588 / 583

Let's proceed to step 8:
When dividing 4588 by 583, we get 7 with a remainder of 507.
Write down 7 as next digit of the result. 
Result so far: 21937.0
Subtracting 4081 from 4588 leaves us with 507.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5070, and continue the process.

Going ahead to step 9:
583 can be fit into 5070 8 times, resulting in a remainder of 406.
The number 8 becomes the next digit in our result. 
Result so far: 21937.8
Subtracting 4664 from 5070 leaves us with 406.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4060, and continue the process.

Let's proceed to step 10:
If we divide 4060 by 583, we get 6 and a remainder of 562.
Write down 6 as next digit of the result. 
Result so far: 21937.86
Deduct 3498 from 4060 and we're left with 562.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5620, and continue the process.

On to step 11:
583 can be fit into 5620 9 times, resulting in a remainder of 373.
The next digit of our result is 9. 
Result so far: 21937.869
If we subtract 5247 from 5620, we get 373.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3730, and continue the process.

On to step 12:
The number 583 fits into 3730 6 times, leaving a remainder of 232.
Record the quotient 6 as the next digit in the result. 
Result so far: 21937.8696
Subtracting 3498 from 3730 leaves us 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 13:
When dividing 2320 by 583, we get 3 with a remainder of 571.
Use 3 as the next digit of our solution. 
Result so far: 21937.86963
The remainder is 571 after subtracting 1749 from 2320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5710, and continue the process.

Let's proceed to step 14:
583 goes into 5710 9 times with a remainder of 463.
The next digit of our result is 9. 
Result so far: 21937.869639
Subtracting 5247 from 5710 leaves us with 463.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4630, and continue the process.

Let's proceed to step 15:
When dividing 4630 by 583, we get 7 with a remainder of 549.
The next digit of our result is 7. 
Result so far: 21937.8696397
Subtract 4081 from 4630 to get 549.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5490, and continue the process.

Step 16:
If we divide 5490 by 583, we get 9 and a remainder of 243.
Record the quotient 9 as the next digit in the result. 
Result so far: 21937.86963979
Subtracting 5247 from 5490 leaves us with 243.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2430, and continue the process.

The final outcome is 21937.86963979, with a leftover of 2.43e-07.