The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A238137 Starting with a(1) = 3, a(2) = 5, a(n+1) is the smallest prime number greater than the previous term a(n) such that there exists k satisfying 1<=k<n, a(n+1) = 2*a(n) - a(k). 2
3, 5, 7, 11, 17, 23, 29, 41, 53, 83, 113, 173, 233, 293, 353, 593, 953, 1553, 2153, 2753, 5153, 8753, 14753, 20753, 36353, 71153, 105953, 211313, 419873, 733793, 1047713, 2086673, 4102193, 8133233, 14179793, 26272913, 52439873, 90699953, 128960033, 167220113 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
This sequence is finite. - Alois P. Heinz, Feb 19 2014
LINKS
EXAMPLE
a(1) = 3, a(2) = 5, a(3) = 2*5 - 3 = 7, a(4) = 2*7 - 3 = 11, a(5) = 2*11 - 5 = 17, ...
MAPLE
a:= proc(n) a(n):= `if`(n<3, [3, 5][n], min(select(p->p>a(n-1)
and isprime(p), {seq(2*a(n-1)-a(k), k=1..n-2)})[]))
end:
seq(a(n), n=1..45); # Alois P. Heinz, Feb 19 2014
CROSSREFS
Cf. A000040.
Sequence in context: A108539 A170886 A361823 * A090919 A065557 A266164
KEYWORD
nonn,fini,full
AUTHOR
Philippe Deléham, Feb 18 2014
EXTENSIONS
More terms from Alois P. Heinz, Feb 19 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 June 11 08:50 EDT 2024. Contains 373295 sequences. (Running on oeis4.)