The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A305531 Smallest k >= 1 such that (n-1)*n^k + 1 is prime. 1
 1, 1, 1, 2, 1, 1, 2, 1, 3, 10, 3, 1, 2, 1, 1, 4, 1, 29, 14, 1, 1, 14, 2, 1, 2, 4, 1, 2, 4, 5, 12, 2, 1, 2, 2, 9, 16, 1, 2, 80, 1, 2, 4, 2, 3, 16, 2, 2, 2, 1, 15, 960, 15, 1, 4, 3, 1, 14, 1, 6, 20, 1, 3, 946, 6, 1, 18, 10, 1, 4, 1, 5, 42, 4, 1, 828, 1, 1, 2, 1, 12, 2, 6, 4, 30, 3, 3022, 2, 1, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 2,4 COMMENTS a(prime(j)) + 1 = A087139(j). a(123) > 10^5, a(342) > 10^5, see the Barnes link for the Sierpinski base-123 and base-342 problems. a(251) > 73000, see A087139. LINKS Eric Chen, Table of n, a(n) for n = 2..122 Gary Barnes, Sierpinski conjectures and proofs Eric Chen, Table n, a(n) for n = 2..360 status PROG (PARI) a(n)=for(k=1, 2^16, if(ispseudoprime((n-1)*n^k+1), return(k))) CROSSREFS For the numbers k such that these forms are prime: a1(b): numbers k such that (b-1)*b^k-1 is prime a2(b): numbers k such that (b-1)*b^k+1 is prime a3(b): numbers k such that (b+1)*b^k-1 is prime a4(b): numbers k such that (b+1)*b^k+1 is prime (no such k exists when b == 1 (mod 3)) a5(b): numbers k such that b^k-(b-1) is prime a6(b): numbers k such that b^k+(b-1) is prime a7(b): numbers k such that b^k-(b+1) is prime a8(b): numbers k such that b^k+(b+1) is prime (no such k exists when b == 1 (mod 3)). Using "-------" if there is currently no OEIS sequence and "xxxxxxx" if no such k exists (this occurs only for a4(b) and a8(b) for b == 1 (mod 3)): .    b   a1(b)   a2(b)   a3(b)   a4(b)   a5(b)   a6(b)   a7(b)   a8(b) --------------------------------------------------------------------    2 A000043 ------- A002235 A002253 A000043 ------- A050414 A057732    4 A272057 ------- ------- xxxxxxx A059266 A089437 A217348 xxxxxxx    6 A079906 A247260 ------- ------- A059614 A145106 A217352 A217351    7 A046866 A245241 ------- xxxxxxx A191469 A217130 A217131 xxxxxxx    8 A268061 A269544 ------- ------- A217380 A217381 A217383 A217382    9 A268356 A056799 ------- ------- A177093 A217385 A217493 A217492   10 A056725 A056797 A111391 xxxxxxx A095714 A088275 A092767 xxxxxxx   11 A046867 A057462 ------- ------- ------- ------- ------- -------   12 A079907 A251259 ------- ------- ------- A137654 ------- -------   13 A297348 ------- ------- xxxxxxx ------- ------- ------- xxxxxxx   14 A273523 ------- ------- ------- ------- ------- ------- -------   15 ------- ------- ------- ------- ------- ------- ------- -------   16 ------- ------- ------- xxxxxxx ------- ------- ------- xxxxxxx Cf. (smallest k such that these forms are prime) A122396 (a1(b)+1 for prime b), A087139 (a2(b)+1 for prime b), A113516 (a5(b)), A076845 (a6(b)), A178250 (a7(b)). Sequence in context: A033809 A046067 A342416 * A132066 A102190 A138650 Adjacent sequences:  A305528 A305529 A305530 * A305532 A305533 A305534 KEYWORD nonn AUTHOR Eric Chen, Jun 04 2018 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified July 29 09:31 EDT 2021. Contains 346344 sequences. (Running on oeis4.)