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.

A361436 Primes of the form k! - Sum_{i=1..k-1} (-1)^(k-i)*i!.

Original entry on oeis.org

3, 7, 29, 139, 821, 5659, 44741, 515616581, 1389068025019, 2390389721955353653838200398484730341485707553165512827613149996957838364422981
Offset: 1

Views

Author

Jack Braxton, Mar 11 2023

Keywords

Comments

Primes of the form k! + A005165(k - 1).

Examples

			139 is in the sequence because it is 5! + (4! - 3! + 2! - 1!).
		

Crossrefs

Cf. A005165 (alternating factorials), A071828, A361437 (the k's).

Programs

  • PARI
    \\ here b(n) is n! + A005165(n-1).
    b(n) = {n! - sum(i=1, n-1, (-1)^(n-i)*i!)}
    { for(k=1, 150, if(ispseudoprime(b(k)), print1(b(k), ", "))) } \\ Andrew Howroyd, Mar 12 2023