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!)
A135266 Partial sums of A132357. 2
0, 1, 5, 19, 60, 182, 546, 1639, 4919, 14761, 44286, 132860, 398580, 1195741, 3587225, 10761679, 32285040, 96855122, 290565366, 871696099, 2615088299, 7845264901, 23535794706, 70607384120, 211822152360, 635466457081 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n+1) - 3a(n) = 0, 1, 2, 4, 3, 2,... (periodically extended with period length 6) = partial sums of A132367.
a(n) = (1/4)*3^(n+1) - (1/12)*(-1)^n + (1/3)*cos(Pi*n/3) - (sqrt(3)/3)*sin (Pi*n/3) - 1. Or, a(n) = (1/4)*3^(n+1) + (1/4)*[ -3; -5; -7; -5; -3; -1] for n>=0. - Richard Choulet, Jan 02 2008
O.g.f.: x*(1 +x +2*x^2)/((3*x-1)*(x+1)(x^2-x+1)*(x-1)). - R. J. Mathar, Jul 28 2008
MATHEMATICA
Join[{0}, Table[(1/4)*3^(n + 1) - (1/12)*(-1)^n + (1/3)*Cos[Pi*n/3] - (Sqrt[3]/3)*Sin [Pi*n/3] - 1, {n, 1, 25}] (* G. C. Greubel, Oct 07 2016 *)
PROG
(PARI) a(n)=([0, 1, 0, 0, 0; 0, 0, 1, 0, 0; 0, 0, 0, 1, 0; 0, 0, 0, 0, 1; -3, 4, -1, -3, 4]^n*[0; 1; 5; 19; 60])[1, 1] \\ Charles R Greathouse IV, Oct 08 2016
CROSSREFS
Sequence in context: A092442 A341711 A328543 * A124123 A189714 A128638
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 02 2007
EXTENSIONS
Edited and extended by R. J. Mathar, Jul 28 2008
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 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)