CPF DV Calculation
Source: SERPRO/SUNAC/ACCTA/ACCPF
DV: Verifying digit.
- CPF number(11 digits)
- Configuration - NNNNNNNNN/DD, basic number with 9 digits + 2 DV's
- DV Calculation
- Module 11 (2 to N)
- Example for CPF: 100.000.987/44
Calculation for 1º DV
CPF -> 1 0 0 0 0 0 9 8 7 Weights -> 1 9 8 7 6 5 4 3 2 0
Calculation -> (10x1)+(9x0)+(8x0)+(7x0)+(6x0)+(5x0)+(4x9)+(3x8)+(2x7)=84 84 / 11 = remainder of division is 7 11 - 7 = 4 (first verifying digit)
Calculation of 2º DV
CPF -> 1 0 0 0 0 0 9 8 7 - 4 Weights-> 1 1 9 8 7 6 5 4 3 2 1 0
Cálculo -> (11x1)+(10x0)+(9x0)+(8x0)+(7x0)+(6x0)+(5x9)+(4x8)+(3x7)+(2x4)=117 117 / 11 = remainder of division is 7 11 - 7 = 4 (second verifying digit)
Obs: For remainder of division equals to zero (0) or one (1) DV is Zero (0).
@author CETEC/CTJEE