login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A125768 Least number k such that n*T_k +/- 1 is prime. 6
1, 1, 1, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 2, 3, 1, 3, 1, 4, 1, 3, 2, 3, 1, 3, 1, 3, 1, 4, 1, 3, 1, 3, 1, 3, 1, 3, 2, 3, 1, 3, 1, 3, 2, 4, 1, 3, 1, 3, 1, 3, 2, 3, 1, 3, 1, 4, 1, 4, 1, 3, 1, 3, 2, 3, 1, 7, 1, 3, 1, 3, 1, 3, 2, 3, 1, 8, 1, 3, 2, 3, 2, 3, 1, 4, 1, 3, 1, 3, 1, 3, 1, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
k times the n-th triangular number plus or minus 1 is prime.
Eventually every prime p appears since (p +/-1) times 1(1+1)/2 equals (p +/- 1).
The first occurrence of k: 1, 26, 5, 31, 320, 698, 79, 89, 1058, 7404, 223, 299, 8504, 13630, 845, 1217, 3334, 26074, 2349, 1835, 71926, 111616, 2473, 1189, 27754, 140366, 3709, 4109, 250126, 223078, 30359, 9649, ...,.
LINKS
MATHEMATICA
f[n_] := Block[{k = 1, trnglr = n*k(k + 1)/2}, While[ !PrimeQ[trnglr - 1] && !PrimeQ[trnglr + 1], k++ ]; k]; Array[f, 105]
CROSSREFS
Sequence in context: A112030 A010684 A176040 * A334949 A334732 A266875
KEYWORD
nonn
AUTHOR
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 09:18 EDT 2024. Contains 371935 sequences. (Running on oeis4.)