

A169738


Base 10 numbers d_1 d_2 ... d_k such that the digits d_i are distinct and not zero, and Sum_{i=1..k1} d_i^i = d_k^k.


1




OFFSET

1,1


LINKS



EXAMPLE

6312 is in the sequence because 6^1+3^2+1^3=2^4, and 781523 is in the sequence because 7^1+8^2+1^3+5^4+2^5=3^6.


MATHEMATICA

okQ[l_List] := Module[{lp= l^Range[Length[l]]}, Plus @@ Most[lp] == Last[lp]]
Sort[FromDigits/@Select[Flatten[Table[Permutations/@Subsets[Range[9], {i} ], {i, 2, 9}], 2], okQ]]


CROSSREFS



KEYWORD

nonn,base,fini,full


AUTHOR



STATUS

approved



