cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A248366 Least positive integer m such that prime(m+n) - prime(m) divides m + n.

Original entry on oeis.org

1, 1, 5, 10, 175, 22, 23, 34, 35, 102, 57, 54, 63, 70, 345, 74, 279, 198, 225, 124, 127, 294, 145, 130, 149, 334, 831, 164, 191, 720, 183, 520, 209, 486, 259, 990, 231, 226, 227, 268, 663, 294, 701, 326, 301, 308, 335, 310, 311, 790
Offset: 1

Views

Author

Zhi-Wei Sun, Oct 05 2014

Keywords

Comments

Conjecture: a(n) exists for any n > 0. Moreover, a(n) <= n^2 except for n = 5, 10, 15, 27.
See also A248369 for a similar conjecture.

Examples

			a(5) = 175 since prime(175+5) - prime(175) = 1069 - 1039 = 30 divides 175 + 5 = 180.
		

Crossrefs

Programs

  • Mathematica
    q[n_]:=q[n]=PartitionsQ[n]
    Do[m=1;Label[aa];If[Mod[m+n,Prime[m+n]-Prime[m]]==0,Print[n," ",m];Goto[bb]];m=m+1;Goto[aa];Label[bb];Continue,{n,1,50}]
  • PARI
    a(n)=m=1;while((m+n)%(prime(m+n)-prime(m)),m++);m
    vector(100,n,a(n)) \\ Derek Orr, Oct 05 2014
Showing 1-1 of 1 results.