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.

Showing 1-2 of 2 results.

A109616 Numbers k > 0 such that (10's complement factorial of k) + 1 is prime.

Original entry on oeis.org

2, 5, 10, 25, 36, 44, 65, 67, 138, 149, 176, 212, 279, 1293, 2367, 2463, 2707, 3130, 4150, 4635, 6070, 6355, 10111, 10560
Offset: 1

Views

Author

Jason Earls, Aug 01 2005

Keywords

Comments

Larger values not certified.
Some of the larger entries may only correspond to probable primes.
a(25) > 16000. - Michael S. Branicky, Apr 27 2025

Examples

			5 is a term because (10-5)*(10-4)*(10-3)*(10-2)*(10-1) + 1 = 15121 is prime.
10 is a term because (100-10)*(10-9)*..*(10-1) + 1 = 32659201 is prime.
		

Crossrefs

Programs

  • Maple
    b:= proc(n) option remember; `if`(n=0, 1,
          (10^length(n)-n)*b(n-1))
        end:
    q:= n-> isprime(1+b(n)):
    select(q, [$1..300])[];  # Alois P. Heinz, Aug 13 2025
  • Mathematica
    f[n_] := 10^Length[IntegerDigits[n]] - n; p = 1; Do[p *= f[n]; If[PrimeQ[p + 1], Print[n]], {n, 4635}] (* Ryan Propper, May 20 2006 *)

Extensions

a(14)-a(20) from Ryan Propper, May 20 2006
a(21)-a(24) from Michael S. Branicky, Apr 25 2025

A109758 Numbers k such that (10's complement factorial of k) - 1 is semiprime.

Original entry on oeis.org

5, 6, 10, 13, 20, 22, 23, 24, 27, 29, 33, 40, 41, 43, 46, 51, 54, 79, 80, 83, 85, 93, 106, 111
Offset: 1

Views

Author

Jason Earls, Aug 12 2005

Keywords

Comments

Sequence possibly continues with 112, 137, 145, 148, 163, 165, 177, 190, 196, 197. 206 is the next certain term. - Tyler Busby, Feb 09 2023

Crossrefs

Extensions

More terms from Sean A. Irvine, Sep 18 2012
Showing 1-2 of 2 results.