OFFSET
1,1
COMMENTS
This sequence has properties related to primes and especially to twin primes. For instance sequence consists of 1's or primes only. 2 occurs infinitely many times, largest primes in twin pairs never occur, other primes occur finitely many times...
For each prime p that appears in the sequence, its first appearance is at a(p-1). - Bill McEachen, Sep 04 2022
LINKS
Markus Schepke, Über Primzahlerzeugende Folgen, Thesis, U. Hannover, 2009
FORMULA
a(2*4^k) = 2, k >= 0.
MATHEMATICA
f[1] := 1; f[n_] := 2*f[n - 1] + LCM[f[n - 1], n]; Table[f[n + 1]/f[n] - 2, {n, 1, 10}] (* G. C. Greubel, Oct 16 2016 *)
PROG
(PARI) x1=1; for(n=2, 40, x2=2*x1+lcm(x1, n); t=x1; x1=x2; print1(x2/t-2, ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 09 2008
STATUS
approved