login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A263169
Smallest positive k such that 78557^k + 2^n is prime, or 0 if no such value exists.
1
0, 33, 2, 0, 76
OFFSET
0,2
COMMENTS
{0, 2, 3} is the set of all noncomposite numbers that belong to this sequence.
The sequence continues: a(5) = ?, a(6) = ?, 87, 12, 0, 0, 3, a(12) = ?.
PROG
(Magma) lst:=[]; for n in [1..4] do if not n mod 6 eq 3 then k:=2; while not IsPrime(78557^k+2^n) do k+:=1; end while; Append(~lst, k); else Append(~lst, 0); end if; end for; [0] cat lst;
CROSSREFS
Cf. A076336.
Sequence in context: A218116 A279364 A308408 * A034060 A032445 A333128
KEYWORD
nonn,more
AUTHOR
STATUS
approved