In number theory, a perfect digital invariant (PDI) is a number in a given number base ( b {\displaystyle b} ) that is the sum of its own digits each raised to a given power ( p {\displaystyle p} ).[1][2]