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-3 of 3 results.

A273756 Least p for which min { x >= 0 | p + (2n+1)*x + x^2 is composite } reaches the (local) maximum given in A273770.

Original entry on oeis.org

41, 43, 47, 53, 61, 71, 83, 97, 113, 131, 151, 173, 197, 223, 251, 281, 313, 347, 383, 421, 461, 503, 547, 593, 641, 691, 743, 797, 73303, 73361, 73421, 73483, 3443897, 3071069, 3071137, 15949847, 76553693, 365462323, 365462399, 2204597, 9721, 1842719, 246407633, 246407719, 246407807, 246407897, 246407989
Offset: 0

Views

Author

M. F. Hasler, May 26 2016

Keywords

Comments

All terms are prime, since this is necessary and sufficient to get a prime for x = 0.
The values given in A273770 are the number of consecutive primes obtained for x = 0, 1, 2, ....
Sequence A273595 is the subsequence of terms for which 2n+1 is prime.
For even coefficients of the linear term, the answer would always be q=2, the only choice that yields a prime for x=0 and also for x=1 if (coefficient of the linear term)+3 is prime.
The initial term a(n=0) = 41 corresponds to Euler's famous prime-generating polynomial 41+x+x^2. Some subsequent terms are equal to the primes this polynomial takes for x=1,2,3,.... This stems from the fact that adding 2 to the coefficient of the linear term is equivalent to shifting the x-variable by 1. Since here we require x >= 0, we find a reduced subset of the previous sequence of primes, missing the first one, starting with q equal to the second one. (It is known that there is no better prime-generating polynomial of this form than Euler's, see the MathWorld page and A014556. "Better" means a larger p producing p-1 primes in a row. However, the prime k-tuple conjecture suggests that there should be arbitrarily long runs of primes of this form (for much larger p), i.e., longer than 41, but certainly much less than the respective p. Therefore we speak of local maxima.)

Crossrefs

Cf. also A002837 (n such that n^2-n+41 is prime), A007634 (n such that n^2+n+41 is composite), A005846 (primes of form n^2+n+41), A097823, A144051, A187057 ... A187060, A190800, A191456 ff.
The first line of data coincides with that of A202018, A107448, A155884 (and also A140755, A142719, except for some initial terms), which are all related.

Programs

  • PARI
    A273756(n,p=2*n+1,L=10^(5+n\10),m=0,Q)={forprime(q=1,L, for(x=1,oo, ispseudoprime(q+p*x+x^2)&& next; x>m&& [Q=q,m=x]; break));Q}

Extensions

Edited, following a remark by Don Reble, by M. F. Hasler, Jan 23 2018
a(27) corrected and more terms from Don Reble, Feb 15 2018

A155884 a(n) = n^2 - n + 41 if this is a prime, a(n) = a(n-40) otherwise.

Original entry on oeis.org

41, 41, 43, 47, 53, 61, 71, 83, 97, 113, 131, 151, 173, 197, 223, 251, 281, 313, 347, 383, 421, 461, 503, 547, 593, 641, 691, 743, 797, 853, 911, 971, 1033, 1097, 1163, 1231, 1301, 1373, 1447, 1523, 1601, 41, 43, 1847, 1933, 61, 2111, 2203, 2297, 2393, 131
Offset: 0

Views

Author

Roger L. Bagula and M. F. Hasler, Jan 29 2009

Keywords

Comments

It is well known that for 0 <= n <= 40, the polynomial f(n) = n^2 - n + 41 does yield a prime number, so the sequence is well defined.
A variant of A005846, A060566, A142719. All these aim at extending the series of prime values of Euler's famous prime-producing polynomial P(n) = n^2 + n + 41, see references in A005846. [The present sequence considers f(n) = P(n-1) which is completely equivalent.]
The present sequence is a simplification of an extended variant of A142719. By construction, all terms of the present sequence are prime, but in contrast to A005846, prime values of the polynomial remain at the "correct" position, a(n) = f(n). The "substituted" values are easily recognized as they follow local maxima. Of course one could equally well insert a(n) = 2 whenever f(n) is composite.
The present sequence contains only primes. A different sequence, defined by "a(n) = f(n) if this is prime, a(n) = f(n-40) otherwise", does not always produce primes.

Crossrefs

Programs

  • PARI
    a(n) = { while( !isprime( n^2-n+41 ), n-=40 ); n^2-n+41 }

A191299 List of integers in Pynchon's "Gravity's Rainbow".

Original entry on oeis.org

20, 200, 200, 69, 1935, 1939, 1942, 1944, 10, 300, 200, 1766, 1812, 1933, 1931, 1931, 15, 200, 1944, 1936, 33, 33
Offset: 1

Views

Author

John M. Campbell, May 30 2011

Keywords

Comments

Integers, in order (up to and including p. 36) appearing in the 1973 novel "Gravity's Rainbow".
Rules: In order to avoid confusion with rational numbers, numbers in strings less representative of entire isolated integers (e.g. "6:43:16 BDST", p. 29), single-quotation-mark-truncated integers (e.g. " '37 ", p. 20, as opposed to "1937"), etc., we begin by establishing the following rules:
(i) The integers cannot be connected to non-space-characters except if: the integer is immediately followed by a period then a space, or a comma then a space, or a question mark then a space, or an exclamation point then a space, or a colon then a space, or a semicolon then a space, or a closing bracket, or a double quotation mark (but not a single quotation mark, e.g. "86'd" p. 22); or except if an opening bracket immediately precedes the integer, or if a double quotation mark (but not a single quotation mark, given the truncation concern indicated above) immediately precedes the integer; integers may be concatenated using "-".
(ii) Integers containing a comma such as "50,000" (p. 85) are allowed.
(iii) These numbers cannot be written using characters of the alphabet, e.g. "Zero" (p. 1), or "World War II" (p. 17).
(iv) The page numbers and chapter numbers of the book are not included (although the corresponding page numbers are indicated below).
(v) Integers appearing in equations are included.
(End of Rules)
See examples below for integers which are and are not(/would not be) included by the above rules.
The corresponding page numbers (in the below edition) are: 3, 7, 7, 9, 14, 17, 18, 21, 21, 25, 27, 27, 27, 28, 29, 29, 31, 34, 34, 36, 36, 36.

Examples

			"...drunks, old veterans still in shock from ordnance 20 years obsolete..." (p. 3)
"Well, the range of these things is supposed to be over 200 miles. You can't see a vapor trail 200 miles, now, can you." (p. 7)
"A lot of stuff prior to 1944 is getting blurry now." (p. 21)
"...hmm, the frock she imagines is about 15 guineas and who knows how many coupons..." (p. 31)
Integers in the following strings/words are not/would not be included: "A4" (p. 8), "V-2" (p. 8), "4/4" (p. 9), "2" immediately followed by the single "1/2" symbol (p. 16), "8:20" (p. 17), " '37 " (p. 20), "86'd" (p. 22), "6:43:16 British Double Summer Time" (p. 27), "3-sigma" (p. 41), "0.37" (p. 57), "10%" (p. 62), "140th" (p. 65), " '39 " (p. 65), "104^o" (where "o" is the degree symbol) (p. 133), etc.
		

References

  • Thomas Pynchon, "Gravity's Rainbow". 1973. Penguin Books, New York, 2006.

Crossrefs

Cf. A055627, A145833, A014254, A142719. Other sequences involving a work of fiction.
Showing 1-3 of 3 results.