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!.

This page as a plain text file.
%I A361436 #14 Mar 31 2023 06:41:26
%S A361436 3,7,29,139,821,5659,44741,515616581,1389068025019,
%T A361436 2390389721955353653838200398484730341485707553165512827613149996957838364422981
%N A361436 Primes of the form k! - Sum_{i=1..k-1} (-1)^(k-i)*i!.
%C A361436 Primes of the form k! + A005165(k - 1).
%e A361436 139 is in the sequence because it is 5! + (4! - 3! + 2! - 1!).
%o A361436 (PARI) \\ here b(n) is n! + A005165(n-1).
%o A361436 b(n) = {n! - sum(i=1, n-1, (-1)^(n-i)*i!)}
%o A361436 { for(k=1, 150, if(ispseudoprime(b(k)), print1(b(k), ", "))) } \\ _Andrew Howroyd_, Mar 12 2023
%Y A361436 Cf. A005165 (alternating factorials), A071828, A361437 (the k's).
%K A361436 hard,nonn
%O A361436 1,1
%A A361436 _Jack Braxton_, Mar 11 2023