OFFSET
1,1
COMMENTS
This sequence is finite. - Alois P. Heinz, Feb 19 2014
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..312
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
KEYWORD
nonn,fini,full
AUTHOR
Philippe Deléham, Feb 18 2014
EXTENSIONS
More terms from Alois P. Heinz, Feb 19 2014
STATUS
approved