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 A034970 #33 Jul 08 2025 21:28:57 %S A034970 2,3,5,7,17,59,167,821,2539,1042259,508903,5765312303,1461701, %T A034970 1404527126434567,2034580216153,97552206663238517,3105563257, %U A034970 46137561830961960349,9777395920402541,6719860896292085951563127,5367788603966004659,33011914147 %N A034970 a(n) is the greatest prime factor of a(n-2)*a(n-1)-1. %H A034970 Tyler Busby, <a href="/A034970/b034970.txt">Table of n, a(n) for n = 0..35</a> (terms 0..34 from Sami Liedes) %p A034970 with(numtheory): %p A034970 a:= proc(n) option remember; `if`(n<2, n+2, %p A034970 max(factorset(a(n-2)*a(n-1)-1)[])) %p A034970 end: %p A034970 seq(a(n), n=0..22); # _Alois P. Heinz_, Feb 03 2014 %t A034970 a[0] = 2; a[1] = 3; a[n_] := a[n] = FactorInteger[ a[n-2]*a[n-1] - 1][[-1, 1]]; Table[a[n], {n, 0, 21}] (* _Jean-François Alcover_, Mar 09 2012 *) %t A034970 nxt[{a_,b_}]:={b,FactorInteger[a*b-1][[-1,1]]}; Transpose[NestList[nxt,{2,3},25]][[1]] (* _Harvey P. Dale_, Apr 05 2014 *) %o A034970 (PARI) A034970(a,b) = {local(f);f=factor(a*b-1);f[matsize(f)[1],1]} %o A034970 a=2;b=3;print(a);print(b) %o A034970 for(n=2,28,c=A034970(a,b);print(c);a=b;b=c) %o A034970 (Haskell) %o A034970 a034970 n = a034970_list !! n %o A034970 a034970_list = 2 : 3 : (map (a006530 . (subtract 1)) $ %o A034970 zipWith (*) a034970_list $ tail a034970_list) %o A034970 -- _Reinhard Zumkeller_, Feb 23 2012 %Y A034970 Cf. A006530, A031441. %K A034970 nonn,easy,nice %O A034970 0,1 %A A034970 _Erich Friedman_ %E A034970 More terms from _James Sellers_ %E A034970 Terms corrected by _Michael B. Porter_, Mar 14 2010