OFFSET
1,1
COMMENTS
For n < 201, 83 numbers cannot be p-morphic numbers, while 116 numbers can be p-morphic number with smallest p varying from, e.g., p(5)=3 to p(103)=101. The smallest power p>1 for which n^p has n somewhere (not necessarily at the end!) in its decimal representation is A045537. If positive, the values of p in A045537 are smaller than p in this sequence.
EXAMPLE
a(12) = 21 because 12^21 is the smallest power (>1) of 12 that ends in 12 (that, is 12 is a 21-morphic number); a(14) = -1 because there is no power (>1) of 14 that ends in 14 (that is, 14 cannot be any p-morphic number).
MATHEMATICA
SelectFirst[Range[2, 120], Function[k, Mod[#^k, 10^IntegerLength@ #] == #]] & /@ Range@ 200 /. n_ /; MissingQ@ n -> -1 (* Michael De Vlieger, Dec 02 2015, Version 10 *)
CROSSREFS
KEYWORD
sign,base
AUTHOR
Zak Seidov, Sep 20 2002
STATUS
approved