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!)
 A283371 Maximum number of pairs of primes (p, q) such that p < q = < prime (n) and q - p = constant. 2
 0, 1, 1, 2, 2, 3, 3, 4, 5, 6, 6, 7, 7, 8, 9, 10, 11, 11, 12, 12, 13, 14, 14, 15, 15, 15, 16, 17, 18, 19, 19, 19, 20, 21, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 27, 28, 29, 30, 31, 31, 31, 32, 32, 33, 34, 35, 36, 36, 37, 37, 38, 39, 40, 41, 41, 41, 42, 43, 43, 43, 43, 44, 44, 45, 46, 47, 48, 48, 49, 50, 50 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,4 COMMENTS Maximum number of different ways of expressing a positive number as a difference of two distinct primes less than or equal to prime(n). Is there any n such that a(n+1) - a(n) > 1? What is the asymptotic behavior of a(n)? To answer the first question: for all n, either a(n+1) = a(n) or a(n+1) = a(n) + 1. - Charles R Greathouse IV, Mar 06 2017 LINKS Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 FORMULA a(n) >> n/log n. In particular, lim inf a(n) * (log n)/n >= 1/2. - Charles R Greathouse IV, Mar 06 2017 EXAMPLE a(1)=0 because there are no two distinct primes less than or equal to prime(1)=2. a(2)=1 because there are only two distinct primes less than or equal to prime(2)=3, and then there is only one positive difference among them: 3 - 2 = 1. a(3)=1 because the three pairs of distinct primes less than or equal to prime(3)=5, i.e., (2,3), (3,5), and (2,5), produce different positive differences: 3 - 2 = 1, 5 - 3 = 2, and 5 - 2 = 3. a(4)=2 because among all pairs of distinct primes taken from the first four primes, 2, 3, 5, and 7, there are two pairs with same positive difference, i.e., 7 - 5 = 5 - 3 = 2. a(6)=3 because among all pairs of distinct primes taken from the first six primes, 2, 3, 5, 7, 11, and 13, there are at most three pairs with the same positive difference, i.e., 13 - 11 = 7 - 5 = 5 - 3 = 2. MATHEMATICA a[n_]:=Module[{fp, fps, fpst, fpstts, fpsttst}, fp=Prime[Range[n]]; fps=Subsets[fp, {2}]; fpst=Table[Abs@(fps[[j]][]-fps[[j]][]), {j, 1, Length[fps]}]; fpstts=fpst//Tally; If[n<2, 0, fpsttst=fpstts//Transpose; fpsttst[]//Max]//Return]; Table[a[n], {n, 1, 120}] PROG (PARI) first(n)=my(v=vector(n), P=primes(n), H=vectorsmall((P[#P]-P)/2, i, 0)); v=1; for(n=3, #P, for(i=2, n-1, H[(P[n]-P[i])/2]++); v[n]=vecmax(H)); v \\ Charles R Greathouse IV, Mar 06 2017 CROSSREFS Cf. A283302, A030173. Sequence in context: A197432 A255573 A062298 * A116579 A156253 A346693 Adjacent sequences:  A283368 A283369 A283370 * A283372 A283373 A283374 KEYWORD nonn AUTHOR Andres Cicuttin, Mar 06 2017 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 September 25 13:33 EDT 2021. Contains 347654 sequences. (Running on oeis4.)
{"ft_lang_label":"__label__en","ft_lang_prob":0.7319899,"math_prob":0.9972495,"size":2651,"snap":"2021-31-2021-39","text_gpt3_token_len":1123,"char_repetition_ratio":0.10766906,"word_repetition_ratio":0.11220472,"special_character_ratio":0.50132024,"punctuation_ratio":0.26056337,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.996547,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-25T17:34:25Z\",\"WARC-Record-ID\":\"<urn:uuid:a1c51dd0-0b99-43d8-b5c1-40f86018393d>\",\"Content-Length\":\"19281\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2855e6e0-4209-400a-978c-55ea11cdd039>\",\"WARC-Concurrent-To\":\"<urn:uuid:5e432a44-2013-48e3-b450-039353044abe>\",\"WARC-IP-Address\":\"104.239.138.29\",\"WARC-Target-URI\":\"https://oeis.org/A283371\",\"WARC-Payload-Digest\":\"sha1:XGG6HQY3C3AQF32VOYKCNZ2ALFUO5HXO\",\"WARC-Block-Digest\":\"sha1:QFVPW7PPFDHFDKKW3BQYKBNI7JBMYH5Z\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057733.53_warc_CC-MAIN-20210925172649-20210925202649-00216.warc.gz\"}"}