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”).

a(n)=a(n-1)^3-2*a(n-2) with a(1)=1, a(2)=2.
1

%I #6 Sep 08 2022 08:45:53

%S 1,2,6,212,9528116,865009958745459864472,

%T 647236979404329414852005811109907426259024826523626405446225816

%N a(n)=a(n-1)^3-2*a(n-2) with a(1)=1, a(2)=2.

%H Vincenzo Librandi, <a href="/A176782/b176782.txt">Table of n, a(n) for n = 1..9</a>

%t RecurrenceTable[{a[1]==1,a[2]==2,a[n]==a[n-1]^3-2*a[n-2]},a,{n,10}] (* _Vincenzo Librandi_, Jul 15 2012 *)

%o (Magma) I:=[1, 2]; [n le 2 select I[n] else Self(n-1)^3-2*Self(n-2): n in [1..7]]; // _Vincenzo Librandi_, Jul 15 2012

%K nonn

%O 1,2

%A _Vincenzo Librandi_, Apr 26 2010