OFFSET
0,2
COMMENTS
a(0) = 1; a(n) is the smallest k such that (k + a(n-1))/(k - a(n-1)) is a prime (A385958).
Note that a(n-1)+1 <= a(n) <= 2*a(n-1).
LINKS
Martin Fuller, Table of n, a(n) for n = 0..3460
FORMULA
a(n) = Product_{k=1..n} (b(k)+1)/(b(k)-1), where b(n) = A385958(n).
a(n) = (1+t(n))/(1-t(n)) with t(n) = tanh(Sum_{k=1..n} arctanh(1/b(k))).
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Thomas Ordowski, Jul 13 2025
EXTENSIONS
More terms from Morné Louw and Martin Fuller, Jul 15 2025
STATUS
approved
