Smallest p>1 for which n^p ends in n, or -1 if no such p exists. The smallest p for which n is a p-morphic number.

A074250

Smallest p>1 for which n^p ends in n, or -1 if no such p exists. The smallest p for which n is a p-morphic number.

Terms

    a(0) =2a(1) =5a(2) =5a(3) =3a(4) =2a(5) =2a(6) =5a(7) =5a(8) =3a(9) =-1a(10) =11a(11) =21a(12) =21a(13) =-1a(14) =-1a(15) =6a(16) =21a(17) =-1a(18) =11a(19) =-1a(20) =6a(21) =-1a(22) =21a(23) =3a(24) =2a(25) =-1a(26) =21a(27) =21a(28) =11a(29) =-1

External references