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-4 of 4 results.

A085747 Least positive k such that n! + k is a semiprime.

Original entry on oeis.org

3, 2, 3, 1, 1, 1, 1, 1, 5, 1, 3, 17, 1, 1, 7, 2, 3, 23, 1, 1, 11, 29, 3, 1, 1, 1, 37, 1, 41, 2, 19, 11, 11, 1, 7, 3, 41, 1, 13, 127, 47, 59, 2, 37, 5, 37, 59, 1, 2, 73, 59, 79, 73, 1, 1, 61, 118, 37, 1, 61, 31, 37, 43, 7, 83, 71, 19, 7, 103, 19, 1, 107, 37, 167, 1, 103, 3, 73, 109, 97
Offset: 1

Views

Author

Jason Earls, Jul 21 2003

Keywords

Comments

a(106) >= 139. - Sean A. Irvine, Oct 29 2019
a(n) = 1 iff n in A078778.

Crossrefs

Programs

  • Magma
    m:=1; sol:=[]; for n in [1..40] do k:=1; while &+[d[2]: d in Factorization(Factorial(n)+k)] ne 2 do k:=k+1; end while; sol[m]:=k; m:=m+1; end for; sol; // Marius A. Burtea, Aug 24 2019
  • Mathematica
    Table[SelectFirst[Range@ 1000, PrimeOmega[n! + #] == 2 &], {n, 40}] (* Michael De Vlieger, Mar 08 2016, Version 10 *)
    lpk[n_]:=Module[{k=1,fn=n!},While[PrimeOmega[fn+k]!=2,k++];k]; Array[lpk,80] (* Harvey P. Dale, Feb 18 2025 *)
  • PARI
    a(n) = {k = 1; while (bigomega(n!+k) != 2, k++); k;} \\ Michel Marcus, Mar 08 2016
    

Extensions

Extended by Robert G. Wilson v, Jul 27 2003
a(55) from Ray Chandler, Nov 09 2003
a(56)-a(80) from Sean A. Irvine, Mar 29 2010

A089539 a(n) is the least semiprime > n!.

Original entry on oeis.org

4, 4, 9, 25, 121, 721, 5041, 40321, 362885, 3628801, 39916803, 479001617, 6227020801, 87178291201, 1307674368007, 20922789888002, 355687428096003, 6402373705728023, 121645100408832001, 2432902008176640001, 51090942171709440011, 1124000727777607680029, 25852016738884976640003
Offset: 1

Views

Author

Ray Chandler, Nov 09 2003

Keywords

Crossrefs

Programs

  • Mathematica
    lsn[n_]:=Module[{sp=n!+1},While[PrimeOmega[sp]!=2,sp++];sp]; Array[lsn,25] (* Harvey P. Dale, Mar 30 2024 *)

Formula

a(n) = n! + A085747(n).

Extensions

Better name, more terms from Jinyuan Wang, Jul 31 2021

A089538 A085747 indexed by A000040.

Original entry on oeis.org

2, 1, 2, 0, 0, 0, 0, 0, 3, 0, 2, 7, 0, 0, 4, 1, 2, 9, 0, 0, 5, 10, 2, 0, 0, 0, 12, 0, 13, 1, 8, 5, 5, 0, 4, 2, 13, 0, 6, 31, 15, 17, 1, 12, 3, 12, 17, 0, 1, 21, 17, 22, 21, 0, 0, 18, 0, 12, 0, 18, 11, 12, 14, 4, 23, 20, 8, 4, 27, 8, 0, 28, 12, 39, 0, 27, 2, 21, 29, 25
Offset: 1

Views

Author

Ray Chandler, Nov 09 2003

Keywords

Crossrefs

Formula

a(n)=k such that A085747(n)=A000040(k) if A085747(n) is prime, otherwise 0.

Extensions

More terms from Max Alekseyev, Jun 17 2011

A089540 Lesser prime factor of semiprimes in A089539.

Original entry on oeis.org

2, 2, 3, 5, 11, 7, 71, 61, 5, 11, 3, 97, 83, 23, 7, 2, 3, 263, 71, 20639383, 11, 281421719, 3, 811, 401, 1697, 110298581317, 29, 33619, 2, 19, 11, 11, 67411, 7, 3, 126397507816417, 14029308060317546154181, 13, 9649, 53, 2044687972231331951
Offset: 1

Views

Author

Ray Chandler, Nov 09 2003

Keywords

Crossrefs

Showing 1-4 of 4 results.