We divide 40142891 by 771
The aim is to understand the frequency of 771 in 40142891.

On to step 1:
When dividing 4 by 771, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 771

Advancing to step 2:
771 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Include the next digit (1) from the dividend after 40, then repeat: 401 / 771

Going ahead to step 3:
When dividing 401 by 771, we get 0 with a remainder of 401.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 401, we end up with 401.
Append the next digit (4) from the dividend to 401 and continue with: 4014 / 771

Step 4:
4014 divided by 771 is 5 with a remainder of 159.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 3855 from 4014 leaves us with 159.
Include the next digit (2) from the dividend after 159, then repeat: 1592 / 771

Advancing to step 5:
When dividing 1592 by 771, we get 2 with a remainder of 50.
Put 2 as the next digit of the answer. 
Result so far: 52.0
The remainder is 50 after subtracting 1542 from 1592.
Append the next digit (8) from the dividend to 50 and continue with: 508 / 771

Moving on to step 6:
508 divided by 771 is 0 with a remainder of 508.
Write down 0 as next digit of the result. 
Result so far: 520.0
Subtract 0 from 508 to get 508.
Bring next digit (9) of the dividend behind the 508 and repeat the process: 5089 / 771

Let's proceed to step 7:
If we divide 5089 by 771, we get 6 and a remainder of 463.
The number 6 becomes the next digit in our result. 
Result so far: 5206.0
If we take 4626 away from 5089, we end up with 463.
Take the next digit (1) from the dividend and append it to 463, then repeat: 4631 / 771

On to step 8:
If we divide 4631 by 771, we get 6 and a remainder of 5.
The next digit of our result is 6. 
Result so far: 52066.0
Subtracting 4626 from 4631 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 9:
When dividing 50 by 771, we get 0 with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 52066.0
The remainder is 50 after subtracting 0 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Step 10:
The number 771 fits into 500 0 times, leaving a remainder of 500.
Record the quotient 0 as the next digit in the result. 
Result so far: 52066.0
Deduct 0 from 500 and we're left with 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

The quotient of the division is 52066.0, and the remainder is 0.5.