This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A309705 #20 Apr 05 2020 16:53:16 %S A309705 1,1,2,2,9,15,104,96,285,565,6214,37282,484665,6785309,101779634, %T A309705 814237070,13842030189,83052181131,1577991441488,7889957207436, %U A309705 55229700452049,1215053409945077,27946228428736770,111784913714947074,2794622842873676849,72660193914715598073 %N A309705 a(n) = lcm(a(n-1), n) - gcd(a(n-1), n) where a(1) = 1. %C A309705 The sequence seems to grow between exponentially and factorially but that's just a suspicion. %H A309705 Alois P. Heinz, <a href="/A309705/b309705.txt">Table of n, a(n) for n = 1..500</a> %F A309705 a(n) = lcm(a(n-1), n) - gcd(a(n-1), n) for n > 1. %e A309705 For n = 5, since a(4) = 2, a(5) = lcm(5,2) - gcd(5,2) = 10 - 1 = 9. %p A309705 a:= proc(n) option remember; `if`(n=1, 1, %p A309705 ilcm(a(n-1), n)-igcd(a(n-1), n)) %p A309705 end: %p A309705 seq(a(n), n=1..29); # _Alois P. Heinz_, Sep 17 2019 %t A309705 a[1] = 1; a[n_] := a[n] = LCM[a[n - 1], n] - GCD[a[n - 1], n]; Array[a, 26] (* _Amiram Eldar_, Sep 17 2019 *) %t A309705 nxt[{n_,a_}]:={n+1,LCM[a,n+1]-GCD[a,n+1]}; NestList[nxt,{1,1},30][[All,2]] (* _Harvey P. Dale_, Apr 05 2020 *) %o A309705 (Python) %o A309705 def lcmMinusGcd(n): %o A309705 retlist = [1] %o A309705 for i in range(1, n): %o A309705 g = gcd(retlist[i-1], i+1) %o A309705 retlist.append( floor(retlist[i-1]*(i+1) / g) - g) %o A309705 return ', '.join(map(str,retlist)) %o A309705 (PARI) seq(n)={my(v=vector(n)); v[1]=1; for(n=2, #v, v[n] = lcm(v[n-1], n) - gcd(v[n-1], n)); v} \\ _Andrew Howroyd_, Aug 28 2019 %Y A309705 Cf. A008339, A077139, A129090. %K A309705 nonn %O A309705 1,3 %A A309705 _Atticus Cull_, Aug 13 2019