Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A087985
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A087985 a(n) = prime(x) is the smallest prime such that 1+n*prime(x) is divisible by prime(x+1), or 0 if no such prime exists. +0
3
2, 0, 3, 2, 23, 19, 2, 3, 47, 2, 5, 43, 2, 7, 83, 2, 0, 3, 2, 11, 79, 2, 3, 0, 2, 0, 103, 2, 17, 13, 2, 5, 3, 2, 0, 7, 2, 3, 5, 2, 0, 163, 2, 257, 263, 2, 7, 3, 2, 0, 0, 2, 3, 0, 2, 61, 223, 2, 11, 5, 2, 47, 3, 2, 41, 73, 2, 3, 7, 2, 317, 11, 2, 5, 19, 2, 0, 3, 2, 7, 5, 2, 3, 829, 2, 17, 0, 2, 67, 0 (list; graph; listen)
OFFSET

1,1

COMMENT

Two unsolved problems and supported conjectures: [1] Given arbitrary n, then 1+np[x]=mp[x+1] is solvable at all or not with some m ? For several n (like n=17,24,26,35,41,50,51,54,87, etc) search up to x=10000000 did not provide p[x] solution. [2] If solution exists, then the number of solution is believed to be finite. E.g.: at n=2122, 8 solutions were found after extensive search {p[x]}={2,19,23,37,89,433,4241,7621}

FORMULA

a(n)=Min{p[x]; Mod[1+np[x], p[x+1]]=0}; a(n)=p; 1+np=mq where {p, q} are smallest consecutive primes satisfying relation belonging to n.

EXAMPLE

n=1: 1+1.p=q is satisfied by {2,3} consecutive prime pair; a[1]=2.

n=2: 1+2p=mq, no solution.

n=6: 1+6p=m.q is satisfied first by {p,q}={19,23} because 6.19+1=115=5.23

It is provable that there are arbitrarily large n to which (a finite number of) solutions exist.

MATHEMATICA

{k=0, nu=0; sq={}}; Table[Print[{n-1, Min[Prime[sq]]}]; nu=0; sq={}; Do[s=Mod[n*Prime[x]+1, Prime[x+1]]; If[Equal[s, 0], nu=nu+1; sq=Append[sq, n]], {x, 1, 10000000}], {n, 1, 257}]

PROGRAM

(PARI) a(n) = local(i, c, p, q); i = 1; c = 0; q = 2; while (1, p = q; q = prime(i + 1); if (!((1 + n*p)%q), return(p)); if ((i + n*p)/q > n - 1/10, c++; if (c == 8, return(0)), c = 0); i++); (Wasserman)

CROSSREFS

Cf. A087986.

Sequence in context: A135351 A079451 A049799 this_sequence A004557 A088276 A099838

Adjacent sequences: A087982 A087983 A087984 this_sequence A087986 A087987 A087988

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Oct 06 2003

EXTENSIONS

More terms from David Wasserman (wasserma(AT)spawar.navy.mil), Jun 17 2005

page 1

Search completed in 0.004 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research