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!)
A340573 a(n) is the smallest lesser twin prime p from A001359 such that the distance to the previous lesser twin prime is 6*n. 1
11, 29, 59, 641, 101, 347, 2309, 569, 1931, 521, 1787, 419, 1229, 1871, 3671, 2237, 6551, 1427, 21491, 1607, 12377, 4931, 1019, 23201, 809, 19697, 12539, 2549, 38921, 10709, 37547, 8819, 9239, 34031, 6089, 80447, 15581, 46049, 36341, 14867, 38237, 36779, 87509, 71261, 15137, 40427, 13679, 54917, 41141, 50891 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Lesser twin primes (with the exception of prime 3) are congruent to 5 modulo 6, which implies that distances between successive pairs of twin primes are 6*k.
LINKS
FORMULA
a(n) = A052350(n) + 6*n.
EXAMPLE
a(1)=11 because 11 - 5 = 6*1.
a(2)=41 because 41 - 29 = 6*2.
a(3)=59 because 59 - 41 = 6*3.
MATHEMATICA
Table[a[n] = 0, {n, 1, 10000}]; Table[
b[n] = 0, {n, 1, 10000}]; qq = {}; prev = 5; Do[
If[Prime[n + 1] - Prime[n] == 2, k = (Prime[n] - prev)/6;
If[b[k] == 0, a[k] = Prime[n]; b[k] = 1]; prev = Prime[n]], {n, 5,
10000}]; list = Table[a[n], {n, 1, 50}]
(* Second program: *)
pp = Select[Prime[Range[10^4]], PrimeQ[#+2]&];
dd = Differences[pp];
a[n_] := pp[[FirstPosition[dd, 6n][[1]]+1]];
Array[a, 50] (* Jean-François Alcover, Jan 13 2021 *)
CROSSREFS
Sequence in context: A056256 A329403 A171667 * A043139 A043919 A120946
KEYWORD
nonn
AUTHOR
Artur Jasinski, Jan 12 2021
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 August 14 08:37 EDT 2024. Contains 375159 sequences. (Running on oeis4.)