Let's divide 12585121 by 402
The aim is to understand the frequency of 402 in 12585121.

Step 1:
The number 402 fits into 1 0 times, leaving a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 402

Advancing to step 2:
When dividing 12 by 402, we get 0 with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 12, we get 12.
Take the next digit (5) from the dividend and append it to 12, then repeat: 125 / 402

Advancing to step 3:
402 can be fit into 125 0 times, resulting in a remainder of 125.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 125 after subtracting 0 from 125.
Take the next digit (8) from the dividend and append it to 125, then repeat: 1258 / 402

Going ahead to step 4:
1258 divided by 402 is 3 with a remainder of 52.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we take 1206 away from 1258, we end up with 52.
Append the next digit (5) from the dividend to 52 and continue with: 525 / 402

Moving on to step 5:
The number 402 fits into 525 1 times, leaving a remainder of 123.
Record the quotient 1 as the next digit in the result. 
Result so far: 31.0
If we take 402 away from 525, we end up with 123.
Append the next digit (1) from the dividend to 123 and continue with: 1231 / 402

Going ahead to step 6:
The number 402 fits into 1231 3 times, leaving a remainder of 25.
The number 3 becomes the next digit in our result. 
Result so far: 313.0
Subtract 1206 from 1231 to get 25.
Fetch the next digit (2) from the dividend, attach it to 25 and continue: 252 / 402

Moving on to step 7:
The number 402 fits into 252 0 times, leaving a remainder of 252.
Record the quotient 0 as the next digit in the result. 
Result so far: 3130.0
If we subtract 0 from 252, we get 252.
Include the next digit (1) from the dividend after 252, then repeat: 2521 / 402

Going ahead to step 8:
402 can be fit into 2521 6 times, resulting in a remainder of 109.
Put 6 as the next digit of the answer. 
Result so far: 31306.0
Subtracting 2412 from 2521 leaves us with 109.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1090, and continue the process.

Advancing to step 9:
When dividing 1090 by 402, we get 2 with a remainder of 286.
Use 2 as the next digit of our solution. 
Result so far: 31306.2
Subtracting 804 from 1090 leaves us with 286.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2860, and continue the process.

Moving on to step 10:
If we divide 2860 by 402, we get 7 and a remainder of 46.
Put 7 as the next digit of the answer. 
Result so far: 31306.27
The remainder is 46 after subtracting 2814 from 2860.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Moving on to step 11:
If we divide 460 by 402, we get 1 and a remainder of 58.
The next digit of our result is 1. 
Result so far: 31306.271
If we take 402 away from 460, we end up with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Step 12:
402 can be fit into 580 1 times, resulting in a remainder of 178.
Write down 1 as next digit of the result. 
Result so far: 31306.2711
The remainder is 178 after subtracting 402 from 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

The quotient of the division is 31306.2711, and the remainder is 0.00178.