40798879 divided by 985 
The aim is to understand the frequency of 985 in 40798879.

Let's proceed to step 1:
When dividing 4 by 985, we get 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 985

Let's proceed to step 2:
The number 985 fits into 40 0 times, leaving a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 985

Going ahead to step 3:
407 divided by 985 is 0 with a remainder of 407.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 407 to get 407.
Append the next digit (9) from the dividend to 407 and continue with: 4079 / 985

On to step 4:
4079 divided by 985 is 4 with a remainder of 139.
The next digit of our result is 4. 
Result so far: 4.0
Subtract 3940 from 4079 to get 139.
Include the next digit (8) from the dividend after 139, then repeat: 1398 / 985

Moving on to step 5:
The number 985 fits into 1398 1 times, leaving a remainder of 413.
Put 1 as the next digit of the answer. 
Result so far: 41.0
If we subtract 985 from 1398, we get 413.
Grab the next digit (8) from the dividend, add it to 413, then carry on: 4138 / 985

On to step 6:
985 can be fit into 4138 4 times, resulting in a remainder of 198.
Write down 4 as next digit of the result. 
Result so far: 414.0
Deduct 3940 from 4138 and we're left with 198.
Include the next digit (7) from the dividend after 198, then repeat: 1987 / 985

On to step 7:
985 goes into 1987 2 times with a remainder of 17.
The number 2 becomes the next digit in our result. 
Result so far: 4142.0
If we subtract 1970 from 1987, we get 17.
Take the next digit (9) from the dividend and append it to 17, then repeat: 179 / 985

On to step 8:
179 divided by 985 is 0 with a remainder of 179.
The number 0 becomes the next digit in our result. 
Result so far: 41420.0
Subtracting 0 from 179 leaves us with 179.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1790, and continue the process.

On to step 9:
The number 985 fits into 1790 1 times, leaving a remainder of 805.
Put 1 as the next digit of the answer. 
Result so far: 41420.1
The remainder is 805 after subtracting 985 from 1790.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8050, and continue the process.

On to step 10:
The number 985 fits into 8050 8 times, leaving a remainder of 170.
Use 8 as the next digit of our solution. 
Result so far: 41420.18
If we subtract 7880 from 8050, we get 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Let's proceed to step 11:
The number 985 fits into 1700 1 times, leaving a remainder of 715.
The next digit of our result is 1. 
Result so far: 41420.181
Subtract 985 from 1700 to get 715.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7150, and continue the process.

Step 12:
When dividing 7150 by 985, we get 7 with a remainder of 255.
Put 7 as the next digit of the answer. 
Result so far: 41420.1817
Subtracting 6895 from 7150 leaves us with 255.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2550, and continue the process.

On to step 13:
2550 divided by 985 is 2 with a remainder of 580.
Record the quotient 2 as the next digit in the result. 
Result so far: 41420.18172
If we take 1970 away from 2550, we end up with 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5800, and continue the process.

On to step 14:
The number 985 fits into 5800 5 times, leaving a remainder of 875.
Record the quotient 5 as the next digit in the result. 
Result so far: 41420.181725
If we take 4925 away from 5800, we end up with 875.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8750, and continue the process.

Advancing to step 15:
985 can be fit into 8750 8 times, resulting in a remainder of 870.
Use 8 as the next digit of our solution. 
Result so far: 41420.1817258
Deduct 7880 from 8750 and we're left with 870.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8700, and continue the process.

Let's proceed to step 16:
985 can be fit into 8700 8 times, resulting in a remainder of 820.
Put 8 as the next digit of the answer. 
Result so far: 41420.18172588
Deduct 7880 from 8700 and we're left with 820.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8200, and continue the process.

The final result is 41420.18172588 with a remainder of 8.2e-07.