We divide 42959291 by 31
The aim is to understand the frequency of 31 in 42959291.

Advancing to step 1:
If we divide 4 by 31, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (2) from the dividend, add it to 4, then carry on: 42 / 31

Step 2:
When dividing 42 by 31, we get 1 with a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 31 from 42 leaves us with 11.
Take the next digit (9) from the dividend and append it to 11, then repeat: 119 / 31

On to step 3:
31 can be fit into 119 3 times, resulting in a remainder of 26.
Put 3 as the next digit of the answer. 
Result so far: 13.0
If we take 93 away from 119, we end up with 26.
Include the next digit (5) from the dividend after 26, then repeat: 265 / 31

Step 4:
31 goes into 265 8 times with a remainder of 17.
Record the quotient 8 as the next digit in the result. 
Result so far: 138.0
The remainder is 17 after subtracting 248 from 265.
Append the next digit (9) from the dividend to 17 and continue with: 179 / 31

Moving on to step 5:
31 can be fit into 179 5 times, resulting in a remainder of 24.
The number 5 becomes the next digit in our result. 
Result so far: 1385.0
The remainder is 24 after subtracting 155 from 179.
Fetch the next digit (2) from the dividend, attach it to 24 and continue: 242 / 31

Moving on to step 6:
242 divided by 31 is 7 with a remainder of 25.
The number 7 becomes the next digit in our result. 
Result so far: 13857.0
If we subtract 217 from 242, we get 25.
Grab the next digit (9) from the dividend, add it to 25, then carry on: 259 / 31

Advancing to step 7:
The number 31 fits into 259 8 times, leaving a remainder of 11.
Record the quotient 8 as the next digit in the result. 
Result so far: 138578.0
If we subtract 248 from 259, we get 11.
Grab the next digit (1) from the dividend, add it to 11, then carry on: 111 / 31

On to step 8:
31 goes into 111 3 times with a remainder of 18.
The number 3 becomes the next digit in our result. 
Result so far: 1385783.0
Subtracting 93 from 111 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 9:
31 goes into 180 5 times with a remainder of 25.
The next digit of our result is 5. 
Result so far: 1385783.5
Subtracting 155 from 180 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 10:
If we divide 250 by 31, we get 8 and a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 1385783.58
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 11:
If we divide 20 by 31, we get 0 and a remainder of 20.
The next digit of our result is 0. 
Result so far: 1385783.58
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 12:
When dividing 200 by 31, we get 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 1385783.5806
Subtract 186 from 200 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 13:
31 goes into 140 4 times with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 1385783.58064
Deduct 124 from 140 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 14:
31 goes into 160 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 1385783.580645
If we subtract 155 from 160, we get 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 15:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 1385783.5806451
Deduct 31 from 50 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 16:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 1385783.58064516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 1385783.58064516, and the remainder is 4e-09.