31585229 ÷ 788 
The aim is to understand the frequency of 788 in 31585229.

On to step 1:
The number 788 fits into 3 0 times, leaving a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 788

Advancing to step 2:
The number 788 fits into 31 0 times, leaving a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Include the next digit (5) from the dividend after 31, then repeat: 315 / 788

Advancing to step 3:
The number 788 fits into 315 0 times, leaving a remainder of 315.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 315 after subtracting 0 from 315.
Bring next digit (8) of the dividend behind the 315 and repeat the process: 3158 / 788

Going ahead to step 4:
788 goes into 3158 4 times with a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 4.0
If we take 3152 away from 3158, we end up with 6.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 788

Let's proceed to step 5:
When dividing 65 by 788, we get 0 with a remainder of 65.
The number 0 becomes the next digit in our result. 
Result so far: 40.0
The remainder is 65 after subtracting 0 from 65.
Include the next digit (2) from the dividend after 65, then repeat: 652 / 788

On to step 6:
788 can be fit into 652 0 times, resulting in a remainder of 652.
Put 0 as the next digit of the answer. 
Result so far: 400.0
Subtract 0 from 652 to get 652.
Append the next digit (2) from the dividend to 652 and continue with: 6522 / 788

Moving on to step 7:
The number 788 fits into 6522 8 times, leaving a remainder of 218.
Put 8 as the next digit of the answer. 
Result so far: 4008.0
Deduct 6304 from 6522 and we're left with 218.
Take the next digit (9) from the dividend and append it to 218, then repeat: 2189 / 788

Advancing to step 8:
When dividing 2189 by 788, we get 2 with a remainder of 613.
Use 2 as the next digit of our solution. 
Result so far: 40082.0
Subtracting 1576 from 2189 leaves us with 613.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6130, and continue the process.

Moving on to step 9:
788 goes into 6130 7 times with a remainder of 614.
Record the quotient 7 as the next digit in the result. 
Result so far: 40082.7
Subtract 5516 from 6130 to get 614.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6140, and continue the process.

Advancing to step 10:
The number 788 fits into 6140 7 times, leaving a remainder of 624.
Use 7 as the next digit of our solution. 
Result so far: 40082.77
If we take 5516 away from 6140, we end up with 624.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6240, and continue the process.

The final result is 40082.77 with a remainder of 0.624.