We're dividing 40789866 by 835 
The aim is to understand the frequency of 835 in 40789866.

Let's proceed to step 1:
If we divide 4 by 835, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 835

Step 2:
The number 835 fits into 40 0 times, leaving a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 835

On to step 3:
835 goes into 407 0 times with a remainder of 407.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 407, we end up with 407.
Fetch the next digit (8) from the dividend, attach it to 407 and continue: 4078 / 835

Advancing to step 4:
When dividing 4078 by 835, we get 4 with a remainder of 738.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we take 3340 away from 4078, we end up with 738.
Take the next digit (9) from the dividend and append it to 738, then repeat: 7389 / 835

Going ahead to step 5:
If we divide 7389 by 835, we get 8 and a remainder of 709.
Put 8 as the next digit of the answer. 
Result so far: 48.0
Subtracting 6680 from 7389 leaves us with 709.
Bring next digit (8) of the dividend behind the 709 and repeat the process: 7098 / 835

Let's proceed to step 6:
When dividing 7098 by 835, we get 8 with a remainder of 418.
The number 8 becomes the next digit in our result. 
Result so far: 488.0
Subtracting 6680 from 7098 leaves us with 418.
Grab the next digit (6) from the dividend, add it to 418, then carry on: 4186 / 835

Let's proceed to step 7:
The number 835 fits into 4186 5 times, leaving a remainder of 11.
Put 5 as the next digit of the answer. 
Result so far: 4885.0
Subtract 4175 from 4186 to get 11.
Take the next digit (6) from the dividend and append it to 11, then repeat: 116 / 835

Step 8:
116 divided by 835 is 0 with a remainder of 116.
The number 0 becomes the next digit in our result. 
Result so far: 48850.0
If we take 0 away from 116, we end up with 116.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

On to step 9:
1160 divided by 835 is 1 with a remainder of 325.
Write down 1 as next digit of the result. 
Result so far: 48850.1
If we subtract 835 from 1160, we get 325.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3250, and continue the process.

Advancing to step 10:
3250 divided by 835 is 3 with a remainder of 745.
The number 3 becomes the next digit in our result. 
Result so far: 48850.13
The remainder is 745 after subtracting 2505 from 3250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7450, and continue the process.

On to step 11:
When dividing 7450 by 835, we get 8 with a remainder of 770.
The next digit of our result is 8. 
Result so far: 48850.138
Subtracting 6680 from 7450 leaves us with 770.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7700, and continue the process.

Let's proceed to step 12:
When dividing 7700 by 835, we get 9 with a remainder of 185.
The next digit of our result is 9. 
Result so far: 48850.1389
If we subtract 7515 from 7700, we get 185.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1850, and continue the process.

Advancing to step 13:
The number 835 fits into 1850 2 times, leaving a remainder of 180.
Put 2 as the next digit of the answer. 
Result so far: 48850.13892
Deduct 1670 from 1850 and we're left with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

On to step 14:
If we divide 1800 by 835, we get 2 and a remainder of 130.
Use 2 as the next digit of our solution. 
Result so far: 48850.138922
If we subtract 1670 from 1800, we get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

The final result is 48850.138922 with a remainder of 1.3e-05.