1264 divided by 31 
We want to figure out the number of times 1264 can be divided by 31.

Advancing to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 31

Going ahead to step 2:
When dividing 12 by 31, we get 0 with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 12 after subtracting 0 from 12.
Bring next digit (6) of the dividend behind the 12 and repeat the process: 126 / 31

Going ahead to step 3:
31 goes into 126 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtract 124 from 126 to get 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 31

Going ahead to step 4:
31 can be fit into 24 0 times, resulting in a remainder of 24.
The next digit of our result is 0. 
Result so far: 40.0
If we subtract 0 from 24, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 5:
31 can be fit into 240 7 times, resulting in a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 40.7
If we subtract 217 from 240, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 6:
If we divide 230 by 31, we get 7 and a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 40.77
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 40.77, and the remainder is 0.013.