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.

A049529 Numbers k such that sum of factorials of digits of k equals pi(k) (A000720).

Original entry on oeis.org

6500, 6501, 6510, 6511, 6521, 12066, 50372, 175677, 553783, 5224903, 5224923, 5246963, 5302479, 5854093, 5854409, 5854419, 5854429, 5854493, 5855904, 5864049, 5865393, 10990544, 11071599
Offset: 1

Views

Author

G. L. Honaker, Jr., Sep 15 1999

Keywords

Comments

By the time that k = 10^8 the number of primes <= 10^8 (5761455) exceeds 8*9! (2903040). - Robert G. Wilson v, Jan 16 2002

Examples

			a(10)=5224903 because there are exactly 5!+2!+2!+4!+9!+0!+3! (or 363035) prime numbers less than or equal to 5224903.
		

Crossrefs

Programs

  • Mathematica
    Do[ If[ Apply[ Plus, IntegerDigits[n] ! ] == PrimePi[n], Print[n]], {n, 1, 11100000} ]
  • PARI
    isok(n) = my(d=digits(n)); sum(k=1, #d, d[k]!) == primepi(n); \\ Michel Marcus, Nov 07 2018