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.

A240163 Numbers n such that (k!+n)/k is prime for some k.

This page as a plain text file.
%I A240163 #12 Aug 04 2014 10:17:01
%S A240163 1,2,3,4,6,8,9,10,12,15,16,18,20,22,24,25,27,28,30,32,33,35,36,38,40,
%T A240163 42,44,45,46,49,51,52,56,58,60,63,65,66,68,70,72,74,78,80,81,82,84,85,
%U A240163 87,88,91,92,95,96,100,102,104,105,106,108,112,114,115,116,117,120,121,123,124,126
%N A240163 Numbers n such that (k!+n)/k is prime for some k.
%C A240163 Complement of A245757.
%H A240163 Jens Kruse Andersen, <a href="/A240163/b240163.txt">Table of n, a(n) for n = 1..1000</a>
%o A240163 (PARI)
%o A240163 a(n)=for(k=1, n, s=(k!+n)/k; if(floor(s)==s, if(ispseudoprime(s), return(k))))
%o A240163 n=1;while(n<200,if(a(n),print1(n,", "));n++)
%Y A240163 Cf. A245757, A245756.
%K A240163 nonn
%O A240163 1,2
%A A240163 _Derek Orr_, Aug 01 2014
%E A240163 Typo in PARI code fixed by _Colin Barker_, Aug 02 2014