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!)
A247893 Least integer k > 0 such that prime(k) - k*n is a square. 2
1, 1, 12, 35, 75, 181, 490, 1061, 2707, 6459, 15932, 40127, 100362, 251711, 637236, 1617181, 4124444, 10553419, 27066987, 69709706, 179992917, 465769804, 1208198534, 3140421726, 8179002096, 21338685437, 55762149044, 145935689364, 382465573484, 1003652347334 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Conjecture: a(n) exists for any n > 0.
See also A247278 for a related conjecture.
LINKS
Zhi-Wei Sun, A new theorem on the prime-counting function, Ramanujan J. 42 (2017), no.1, 59-67. (Cf. Conjecture 4.1.)
EXAMPLE
a(3) = 12 with prime(12) - 12*3 = 37 - 36 = 1^2.
a(21) = 179992917 with prime(179992917) - 179992917*21 = 3779851261 - 179992917*21 = 2^2.
a(22) = 465769804 with prime(465769804) - 465769804*22 = 10246935737 - 465769804*22 = 7^2.
MATHEMATICA
SQ[n_]:=IntegerQ[Sqrt[n]]
Do[k=1; Label[aa]; If[SQ[Prime[k]-k*n], Print[n, " ", k]; Goto[bb]]; k=k+1; Goto[aa]; Label[bb]; Continue, {n, 1, 18}]
lik[n_]:=Module[{k=1}, While[!IntegerQ[Sqrt[Prime[k]-k*n]], k++]; k]; Array[lik, 20] (* Harvey P. Dale, May 11 2019 *)
CROSSREFS
Sequence in context: A280364 A033570 A163661 * A348462 A142074 A102085
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Sep 27 2014
EXTENSIONS
a(21)-a(22) from Zhi-Wei Sun, Apr 21 2020
Terms a(23) and beyond from Giovanni Resta, Apr 22 2020
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 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)