login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A258948 a(1)=1, a(2)=2; for n>2, a(n) = (1/2)*a(n-1)*a(n-2) + a(n-1) + a(n-2). 0
1, 2, 4, 10, 34, 214, 3886, 419902, 816293374, 171382426877950, 69949169911638289022974, 5994029248777394614754727872037912574, 209638685189029793998133268981457005889853767752082771673086 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) + 2 = (1/2)*(a(n-1) + 2)*(a(n-2) + 2), from which the general formula can be proved using the method shown in A063896.
LINKS
FORMULA
a(n) = 2 * 3^A000045(n-2) * 2^A000045(n-3) - 2, where A000045(n) is the n-th Fibonacci number.
EXAMPLE
a(3) = (1/2)*2*1 + 2 + 1 = 4;
a(4) = (1/2)*4*2 + 4 + 2 = 10;
a(5) = (1/2)*10*4 + 10 + 4 = 34;
a(6) = 2*(3^3)(2^2) - 2 = 214.
MATHEMATICA
Table[2 3^Fibonacci[n-2] 2^Fibonacci[n-3] - 2, {n, 1, 20}] (* Vincenzo Librandi, Jun 17 2015 *)
PROG
(Magma) [n le 2 select n else Self(n-1)*Self(n-2)/2+Self(n-1)+Self(n-2): n in [1..13]];
(PARI) a(n) = 2*(3^fibonacci(n-2))*(2^fibonacci(n-3)) - 2; \\ Michel Marcus, Jun 17 2015
(Magma) [2*3^Fibonacci(n-2)*2^Fibonacci(n-3)-2: n in [1..20]]; // Vincenzo Librandi, Jun 17 2015
CROSSREFS
Sequence in context: A003422 A117402 A109455 * A343158 A189591 A189598
KEYWORD
nonn,easy
AUTHOR
Morris Neene, Jun 15 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 26 09:43 EDT 2024. Contains 371994 sequences. (Running on oeis4.)