login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A135508
a(n) = x(n+1)/x(n) - 2 where x(1)=1 and x(n) = 2*x(n-1) + lcm(x(n-1),n).
12
2, 3, 1, 1, 1, 7, 2, 1, 1, 11, 1, 1, 7, 1, 1, 17, 1, 1, 1, 7, 11, 23, 1, 1, 1, 1, 7, 29, 1, 1, 2, 11, 17, 7, 1, 37, 1, 1, 1, 41, 7, 1, 11, 1, 23, 47, 1, 1, 1, 17, 1, 53, 1, 1, 1, 1, 29, 59, 1, 1, 1, 1, 1, 1, 1, 67, 17, 1, 1, 71, 1, 1, 37, 1, 1, 1, 1, 79, 1, 1, 41, 83, 1, 1, 1, 29, 1, 89, 1, 1, 1, 1
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
Cf. A106108.
Sequence in context: A205104 A215561 A108714 * A030413 A139434 A113925
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 09 2008
STATUS
approved