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!)
A168253 a(n) is the smallest prime q such that, for the previous prime p and the following prime r, the fraction (q-p)/(r-q) has denominator n (or 0, if such a prime does not exist). 9

%I #20 Dec 11 2016 15:52:37

%S 5,3,23,89,139,199,113,1933,523,3089,1129,1669,2477,2971,4297,5591,

%T 1327,28351,30593,19333,16141,36389,81463,28229,31907,19609,35617,

%U 82073,44293,102701,34061,288583,221327,134513,173359,360091

%N a(n) is the smallest prime q such that, for the previous prime p and the following prime r, the fraction (q-p)/(r-q) has denominator n (or 0, if such a prime does not exist).

%C Conjecture: a(n)>0 for all n.

%H Robert G. Wilson v, <a href="/A168253/b168253.txt">Table of n, a(n) for n = 1..127</a>

%t f[n_] := Block[{p = 2, q = 3, r = 5}, While[ Numerator[(r - q)/(q - p)] != n, p = q; q = r; r = NextPrime@ r]; q]; Array[f, 36]

%t p = 2; q = 3; r = 5; t[_] = 0; While[q < 100000000, If[ t[ Denominator[(q - p)/(r - q)]] == 0, t[ Denominator[(q - p)/(r - q)]] = q]; p = q; q = r; r = NextPrime@ r]; t@# & /@ Range@100 (* _Robert G. Wilson v_, Dec 11 2016 *)

%Y Cf. A179210, A179234, A001223

%K nonn

%O 1,1

%A _Vladimir Shevelev_, Jan 05 2011

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 11 01:05 EDT 2024. Contains 375059 sequences. (Running on oeis4.)