A143684 - OEIS (original) (raw)

A143684

a(0) = a(1) = 0; thereafter a(n) = 2*a(n-1)*a(n-2) + 1.

2

0, 0, 1, 1, 3, 7, 43, 603, 51859, 62541955, 6486726488691, 811385112306041061811, 10526466601050236861337066646958803, 17082036570557873538131893815781561362696563088187144467, 359626974875792367278553795120318710475396935851854517275793126801351587742904492716786003

LINKS

A. V. Aho and N. J. A. Sloane, Some doubly exponential sequences, Fibonacci Quarterly, Vol. 11, No. 4 (1973), pp. 429-437 (original plus references that F.Q. forgot to include - see last page!)

MATHEMATICA

a[n_]:=a[n]=If[n<2, 0, 2*a[n-1]*a[n-2]+1]; Table[a[n], {n, 0, 15}] (* G. C. Greubel, May 29 2021 *)

PROG

(Magma) I:=[0, 0]; [n le 2 select I[n] else 2*Self(n-1)*Self(n-2)+1: n in [1..15]]; // Vincenzo Librandi, Nov 14 2011

(SageMath)

def a(n): return 0 if (n<2) else 2*a(n-1)*a(n-2) + 1

AUTHOR

N. J. A. Sloane, based on email from Carla J. Garner-Bennett, Nov 13 2008