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.

A172114 Partial sums of factorial primes A088054.

Original entry on oeis.org

2, 5, 10, 17, 40, 759, 5798, 39922599, 518924198, 87697215397, 10888869450418352248465215398, 265263748681641476988556945215397, 263396100682375171644206569105215396, 8946713719494261667162400970385215395
Offset: 1

Views

Author

Jonathan Vos Post, Jan 25 2010

Keywords

Comments

The primes in this sequence begin 2, 5, 17; where 5 is itself a factorial prime 3!-1. What is the next prime in the sequence?

Crossrefs

Formula

a(n) = SUM[i=1..n] A088054(i) = SUM[i=1..n] {primes which are within 1 of a factorial number}.

A163074 Swinging primes: primes which are within 1 of a swinging factorial (A056040).

Original entry on oeis.org

2, 3, 5, 7, 19, 29, 31, 71, 139, 251, 631, 3433, 12011, 48619, 51479, 51481, 2704157, 155117519, 280816201, 4808643121, 35345263801, 81676217699, 1378465288199, 2104098963721, 5651707681619, 94684453367401, 386971244197199, 1580132580471899, 1580132580471901
Offset: 1

Views

Author

Peter Luschny, Jul 21 2009

Keywords

Comments

Union of A163075 and A163076.

Examples

			3$ + 1 = 7 is prime, so 7 is in the sequence. (Here '$' denotes the swinging factorial function.)
		

Crossrefs

Programs

  • Maple
    # Seq with arguments <= n:
    a := proc(n) select(isprime,map(x -> A056040(x)+1,[$1..n]));
    select(isprime,map(x -> A056040(x)-1,[$1..n]));
    sort(convert(convert(%%,set) union convert(%,set),list)) end:
  • Mathematica
    Reap[Do[f = n!/Quotient[n, 2]!^2; If[PrimeQ[p = f - 1], Sow[p]]; If[PrimeQ[p = f + 1], Sow[p]], {n, 1, 45}]][[2, 1]] // Union (* Jean-François Alcover, Jun 28 2013 *)

Extensions

More terms from Jinyuan Wang, Mar 22 2020

A344384 Prime numbers p such that p-1 or p+1 is a number of least prime signature (A025487).

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 17, 23, 29, 31, 37, 47, 59, 61, 71, 73, 97, 127, 179, 181, 191, 193, 211, 239, 241, 257, 359, 383, 419, 421, 431, 433, 479, 577, 719, 769, 839, 863, 1151, 1153, 1259, 1297, 1439, 1801, 2161, 2309, 2311, 2521, 2591, 2593, 2879, 3359, 3361
Offset: 1

Views

Author

Hal M. Switkay, May 16 2021

Keywords

Comments

The corresponding numbers of least prime signature are A344385.
19 is the first prime not in this sequence.
This sequence unites many familiar sequences of primes, including Fermat primes (A019434), Mersenne primes (A000668), primorial primes (A018239 and A057705), factorial primes (A088054), A007505, and A039687.
Questions: 1) Is this sequence infinite? 2) Is log(a(n)) = O(log(n)^2)?

Examples

			17 is a term because 17 - 1 = 16 is a number of least prime signature.
		

Crossrefs

Programs

  • Mathematica
    {2}~Join~Select[Prime@ Range[2, 900], AnyTrue[# + {-1, 1}, Times @@ MapIndexed[Prime[First[#2]]^#1 &, Sort[FactorInteger[#][[All, -1]], Greater] ] == # &] &] (* Michael De Vlieger, May 16 2021 *)

A177502 Prime numbers p such that (p-2)! + 1 is prime.

Original entry on oeis.org

2, 3, 5, 13, 29, 43, 79, 401, 26953, 150211, 288467, 422431
Offset: 1

Views

Author

Artur Jasinski, May 10 2010

Keywords

Examples

			a(1)=2 because (2-2)! + 1 = 0! + 1 = 1 + 1 = 2.
		

Crossrefs

Programs

  • Mathematica
    aa = {}; Do[p = Prime[n]; If[PrimeQ[(p - 2)! + 1], AppendTo[aa, p]], {n, 1, 10000}]; aa

Extensions

New term added by Artur Jasinski, May 19 2010
a(10)-a(12) from Amiram Eldar, Oct 24 2024
Showing 1-4 of 4 results.