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.

A260350 Define g(k) = min(n: n >= 0, 2^n + k prime). Then a(n) = min(odd k: g(k) = n).

This page as a plain text file.
%I A260350 #27 Apr 19 2018 09:58:28
%S A260350 1,3,7,23,31,47,199,83,61,257,139,953,991,647,1735,383,511,1337,1069,
%T A260350 713,271,1937,3223,5213,751,8477,4339,353,1501,287,829,1553,2371,1811,
%U A260350 11185,3023,7381,7937,6439,1433,13975,2897,4183
%N A260350 Define g(k) = min(n: n >= 0, 2^n + k prime). Then a(n) = min(odd k: g(k) = n).
%C A260350 Previous name: a(n) = min(k : A067760((k-1)/2)) = n.
%C A260350 a(n) is the first odd number k for which 2^m + k is the first prime value, as m ranges from 0 to n, or 0 if no such k exists. Thus it is the first k for which A067760((k-1)/2) = n, and therefore also the first k for which you need to test primality of exactly n values to show that it is not a dual SierpiƄski number.
%C A260350 In the name, g(n) = A067760(n) except for n=1. - _Michel Marcus_, Apr 07 2018
%H A260350 Hugo van der Sanden, <a href="/A260350/b260350.txt">Table of n, a(n) for n = 0..1087</a>
%F A260350 For n>=2, a(n) = (min(k : A067760((k-1)/2)) = n). - _Michel Marcus_, Apr 07 2018
%e A260350 2^i + 7 is composite for i < 2 (with values 8, 9) but prime for i = 2 (11); the smaller odd numbers 1, 3 and 5 each yield a prime for smaller i, so a(2) = 7.
%o A260350 (PARI) g(k) = {my(j=0); while (!isprime(2^j+k), j++); j;}
%o A260350 a(n) = {my(k = 1); while(g(k) != n, k+=2); k;} \\ _Michel Marcus_, Apr 07 2018
%Y A260350 Cf. A067760, A076336, A260349.
%K A260350 nonn
%O A260350 0,2
%A A260350 _Hugo van der Sanden_, Jul 23 2015
%E A260350 New name from _Hugo van der Sanden_ and _Michel Marcus_, Apr 07 2018