OFFSET
1,1
LINKS
Tim Johannes Ohrtmann, Table of n, a(n) for n = 1..3541
Eric Weisstein's World of Mathematics, Narcissistic Number
Wikipedia, Narcissistic number
EXAMPLE
a(1) = 17 because this is the first number that is a multiple-digit narcissistic number in exactly two bases (3 and 13).
PROG
(PARI) for(n=3, 1000000, k=0; for(z=2, n, y=n; j=0; L=List(); until(y==0, x=y%z; j++; listinsert(L, x, j); while(!((y%z)==0), y--); y=y/z); t=0; for(p=1, j, t+=L[p]^j); if(n==t, k++)); if(k==2, print1(n, ", ")))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tim Johannes Ohrtmann, Mar 26 2015
STATUS
approved