OFFSET
1,1
LINKS
Christopher C. Capobianco, Table of n, a(n) for n = 1..18
FORMULA
a(n) = a(n-1)*a(n-2) - (a(n-1)+a(n-2)), with a(1) = 2, a(2) = 5.
EXAMPLE
a(3) = a(1) * a(2) - (a(1) + a(2)) = 2 * 5 - (2 + 5) = 3.
MATHEMATICA
RecurrenceTable[{x[n+1]==x[n]*x[n-1]-(x[n]+x[n-1]), x[1]==2, x[2]==5}, x, {n, 1, 18}]
PROG
(Magma) I:=[2, 5]; [n le 2 select I[n] else Self(n-1)*Self(n-2)-(Self(n-1)+Self(n-2)): n in [1..14]]; // Vincenzo Librandi, Jul 10 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Christopher C. Capobianco, Jul 05 2019
STATUS
approved