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.

A281141 Least number b > 2 such that n*b^n - 1 is a prime number or 0 if no such b exists.

This page as a plain text file.
%I A281141 #43 Mar 02 2019 04:21:57
%S A281141 3,3,4,0,4,3,8,4,40,3,10,8,56,4,10,0,46,3,6,6,42,51,4,6,8,67,0,18,102,
%T A281141 18,98,34,38,6,136,0,90,17,10,3,52,5,12,8,18,3,28,132,72,165,40,657,
%U A281141 418,101,44,205,94,9,426,10,482,36,4,0,418,252,38,7
%N A281141 Least number b > 2 such that n*b^n - 1 is a prime number or 0 if no such b exists.
%C A281141 By definition, if b < n+2 then the prime n*b^n - 1 is a generalized Woodall prime.
%C A281141 a(n) = 0 if n is in A097764. - _Robert Israel_, Jan 15 2017
%C A281141 From _Robert G. Wilson v_, Jan 20 2017: (Start)
%C A281141 Odd terms are about 3/14 of the total.
%C A281141 Records: 3, 4, 8, 40, 56, 67, 102, 136, 165, 657, 882, 1442, 4080, 5146, 6388, 8617, 9440, 13470, 19285, 22155, 947310, ..., .
%C A281141 Indices of prime terms: 1, 2, 6, 10, 18, 26, 38, 40, 42, 46, 54, 68, 84, 86, 110, ..., .
%C A281141 Indices of perfect power terms: 3, 5, 7, 8, 12, 14, 23, 25, 44, 58, 62, 63, 69, 107, ..., .
%C A281141 (End)
%H A281141 Robert G. Wilson v, <a href="/A281141/b281141.txt">Table of n, a(n) for n = 1..1030</a> (first 500 terms from Pierre CAMI; a(456) corrected by Robert G. Wilson v)
%H A281141 Pierre CAMI, <a href="/A281141/a281141.txt">PFGW Script</a>
%e A281141 1*3^1 - 1 = 2 prime, so a(1) = 3.
%e A281141 2*3^2 - 1 = 17 prime, so a(2) = 3.
%e A281141 3*4^3 - 1 = 191 prime, so a(3) = 4.
%e A281141 4*b^4 - 1 = (2*b^2)^2 - 1 = (2*b^2 + 1)*(2*b^2 - 1), which is always composite, so a(4) = 0.
%t A281141 lst = {* the terms in A097764 *}; f[n_] := If[ MemberQ[lst, n], 0, Block[{b = 3}, While[ !PrimeQ[n*b^n - 1], b++]; b]]; Array[f, 70] (* _Robert G. Wilson v_, Jan 20 2017 *)
%Y A281141 Cf. A097764, A240235.
%K A281141 nonn
%O A281141 1,1
%A A281141 _Pierre CAMI_, Jan 15 2017