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.

A385957 Prime(n) is the a(n)-th prime having its distinct digits.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 4, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 2, 3, 1, 2, 1, 2, 3, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 5, 6, 3, 7, 3, 1, 1, 2, 1, 1, 4, 1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 2, 3, 1, 1
Offset: 1

Views

Author

David A. Corneth, Jul 13 2025

Keywords

Examples

			a(1) = 1 as prime(1) = 2 is the first prime having its distinct digits {2}.
a(11) = 2 as prime(11) = 31 is the second prime having its disitinct digits {1, 3} (the first is 13).
a(32) = 4 as prime(32) = 131 is the fourth prime having its distinct digits {1, 3} (the first three are 13, 31 and 113).
		

Crossrefs

Programs

  • Mathematica
    Block[{c, f, p}, c[] := 0; f[x] := Union@ IntegerDigits[x]; Reap[Do[p = Prime[n]; Sow[++c[f[p] ] ], {n, 120}] ][[-1, 1]] ] (* Michael De Vlieger, Jul 13 2025 *)
  • PARI
    \\ See Corneth link