cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A256459 Least number that is a multiple-digit narcissistic number in exactly n bases.

Original entry on oeis.org

5, 17, 125, 4901, 274625, 36125
Offset: 1

Views

Author

Tim Johannes Ohrtmann, Mar 30 2015

Keywords

Examples

			a(3) = 125 because this is the least number that is a multiple-digit narcissistic number in exactly three bases (12, 23 and 57).
		

Crossrefs

Cf. A005188.
Cf. A256359 (every number of bases).
Cf. A256360, A256361, A256362, A256363, A256364, A256365 (1 to 6 bases).

Programs

  • PARI
    b=0; until(b==6, b++; n=2; until(k==b, n++; 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==b, print1(n, " "))))