Let's divide 40797298 by 159
The aim is to understand the frequency of 159 in 40797298.

Going ahead to step 1:
159 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 159

Moving on to step 2:
The number 159 fits into 40 0 times, leaving a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 159

Step 3:
407 divided by 159 is 2 with a remainder of 89.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 318 away from 407, we end up with 89.
Grab the next digit (9) from the dividend, add it to 89, then carry on: 899 / 159

Step 4:
The number 159 fits into 899 5 times, leaving a remainder of 104.
Use 5 as the next digit of our solution. 
Result so far: 25.0
Subtracting 795 from 899 leaves us with 104.
Include the next digit (7) from the dividend after 104, then repeat: 1047 / 159

Let's proceed to step 5:
159 can be fit into 1047 6 times, resulting in a remainder of 93.
Record the quotient 6 as the next digit in the result. 
Result so far: 256.0
Subtracting 954 from 1047 leaves us with 93.
Grab the next digit (2) from the dividend, add it to 93, then carry on: 932 / 159

Moving on to step 6:
If we divide 932 by 159, we get 5 and a remainder of 137.
The number 5 becomes the next digit in our result. 
Result so far: 2565.0
If we subtract 795 from 932, we get 137.
Bring next digit (9) of the dividend behind the 137 and repeat the process: 1379 / 159

Going ahead to step 7:
If we divide 1379 by 159, we get 8 and a remainder of 107.
Record the quotient 8 as the next digit in the result. 
Result so far: 25658.0
Deduct 1272 from 1379 and we're left with 107.
Take the next digit (8) from the dividend and append it to 107, then repeat: 1078 / 159

Going ahead to step 8:
1078 divided by 159 is 6 with a remainder of 124.
Write down 6 as next digit of the result. 
Result so far: 256586.0
The remainder is 124 after subtracting 954 from 1078.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

On to step 9:
When dividing 1240 by 159, we get 7 with a remainder of 127.
Record the quotient 7 as the next digit in the result. 
Result so far: 256586.7
If we subtract 1113 from 1240, we get 127.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1270, and continue the process.

Going ahead to step 10:
159 goes into 1270 7 times with a remainder of 157.
Use 7 as the next digit of our solution. 
Result so far: 256586.77
Subtract 1113 from 1270 to get 157.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1570, and continue the process.

The final outcome is 256586.77, with a leftover of 0.157.