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.

A157833 Numbers k such that 1 + Sum_{j=0..k} (-1)^j*(k-j)! is prime.

Original entry on oeis.org

2, 3, 5, 7, 15, 19, 41, 59, 61, 105, 661, 2653, 3069, 3943, 4053, 8275
Offset: 1

Views

Author

Kyle D. Balliet, Mar 07 2009

Keywords

Comments

Note that when k is even, 3 divides the sum.
The sums corresponding to terms >= 661 are only probable primes. - Klaus Brockhaus, Mar 13 2009

Examples

			a(2) = ((-1)^0)(2-0)! + ((-1)^1)(2-1)! + ((-1)^2)(2-2)! + 1 = 2! - 1! + 0! + 1 = 3 (prime).
		

Extensions

a(7)-a(15) from Klaus Brockhaus, Mar 13 2009
a(16) from Michael S. Branicky, Aug 30 2024