The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A152298 a(n) = (3^n-1)/2 if n odd, (3^n-1)/8 if n even. 1
 0, 1, 1, 13, 10, 121, 91, 1093, 820, 9841, 7381, 88573, 66430, 797161, 597871, 7174453, 5380840, 64570081, 48427561, 581130733, 435848050, 5230176601, 3922632451, 47071589413, 35303692060, 423644304721, 317733228541, 3812798742493, 2859599056870 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,4 LINKS Vincenzo Librandi, Table of n, a(n) for n = 0..300 Index entries for linear recurrences with constant coefficients, signature (0,10,0,-9). FORMULA a(n) = (3^n - 1)/(2^(3 - 2*Mod[n, 2])). a(n) = 10*a(n-2) - 9*a(n-4). - Colin Barker, Jun 17 2015 G.f.: x*(3*x^2+x+1) / ((x-1)*(x+1)*(3*x-1)*(3*x+1)). - Colin Barker, Jun 17 2015 MATHEMATICA Clear[a, n]; a[n_] := (3^n - 1)/(2^(3 - 2*Mod[n, 2])); Table[a[n], {n, 0, 30}] PROG (PARI) concat(0, Vec(x*(3*x^2+x+1)/((x-1)*(x+1)*(3*x-1)*(3*x+1)) + O(x^100))) \\ Colin Barker, Jun 17 2015 CROSSREFS Cf. A003462. Sequence in context: A180864 A206608 A094813 * A158956 A259663 A160130 Adjacent sequences:  A152295 A152296 A152297 * A152299 A152300 A152301 KEYWORD nonn,easy AUTHOR Roger L. Bagula, Dec 02 2008 EXTENSIONS Edited by N. J. A. Sloane, Aug 15 2013 STATUS approved

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

Last modified September 24 08:52 EDT 2021. Contains 347624 sequences. (Running on oeis4.)