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!)
A248369 Least positive integer m such that prime(m+n) - prime(m) divides m. 2
1, 6, 54, 18, 26, 24, 80, 120, 180, 48, 70, 160, 92, 82, 220, 98, 228, 102, 378, 130, 348, 152, 158, 172, 202, 372, 204, 720, 206, 448, 218, 560, 236, 228, 222, 1480, 282, 1656, 636, 300, 312, 322, 764, 350, 356, 352, 362, 420, 434, 860 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Conjecture: a(n) exists for any n > 0. Moreover, for n > 9 we have a(n) < n^2 except for n = 12, 19, 36, 38.
Note that for each n > 1 the term a(n) should be even and at least 2*n.
LINKS
EXAMPLE
a(7) = 80 since prime(80+7) - prime(80) = 449 - 409 = 40 divides 80.
MATHEMATICA
Do[m=1; Label[aa]; If[Mod[m, Prime[m+n]-Prime[m]]==0, Print[n, " ", m]; Goto[bb]]; m=m+1; Goto[aa]; Label[bb]; Continue, {n, 1, 50}]
lpi[n_]:=Module[{m=1}, While[Mod[m, Prime[n+m]-Prime[m]]!=0, m++]; m]; Array[ lpi, 50] (* Harvey P. Dale, Jan 17 2022 *)
PROG
(PARI)
a(n)=m=1; while(m%(prime(m+n)-prime(m)), m++); m
vector(100, n, a(n)) \\ Derek Orr, Oct 05 2014
CROSSREFS
Sequence in context: A360175 A221413 A145003 * A097645 A153333 A284858
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Oct 05 2014
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 16 07:08 EDT 2024. Contains 371698 sequences. (Running on oeis4.)