This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A171834 Partial sums of numbers congruent to {0, 1, 2, 7} mod 8 (A047527). 1
 1, 3, 10, 18, 27, 37, 52, 68, 85, 103, 126, 150, 175, 201, 232, 264, 297, 331, 370, 410, 451, 493, 540, 588, 637, 687, 742, 798, 855, 913, 976, 1040, 1105, 1171, 1242, 1314, 1387, 1461, 1540, 1620, 1701, 1783, 1870, 1958, 2047, 2137, 2232, 2328, 2425, 2523 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS G. C. Greubel, Table of n, a(n) for n = 1..10000 Index entries for linear recurrences with constant coefficients, signature (2,-1,0,1,-2,1). FORMULA a(n) = Sum_{i=1..n} A047527(i). From G. C. Greubel, Sep 04 2018: (Start) a(n) = (4*n^2 + 2*n - 3 + 2*(1 + (-1)^n)*I^n - (-1)^n)/4, where I = sqrt(-1). G.f.: x*(1+x+5*x^2+x^3)/((1-x)^2*(1-x^4)). E.g.f.: (2*cos(x) +(2*x^2 +3*x -1)*sinh(x) +(2*x^2 +3*x -2)*cosh(x))/2. (End) MATHEMATICA Accumulate[Select[Range[120], MemberQ[{0, 1, 2, 7}, Mod[#, 8]]&]]  (* Harvey P. Dale, Mar 08 2011 *) Table[(4*n^2 +2*n -3 +2*(1 +(-1)^n)*I^n -(-1)^n)/4, {n, 1, 100}] (* G. C. Greubel, Sep 04 2018 *) PROG (PARI) vector(100, n, (4*n^2 +2*n -3 +2*(1 +(-1)^n)*I^n -(-1)^n)/4) \\ G. C. Greubel, Sep 04 2018 (PARI) x='x+O('x^99); Vec(x*(1+x+5*x^2+x^3)/((1-x)^2*(1-x^4))) \\ Altug Alkan, Sep 05 2018 (MAGMA) C := ComplexField(); [Round((4*n^2 +2*n -3 +2*(1 +(-1)^n)*I^n -(-1)^n)/4): n in [1..100]]; // G. C. Greubel, Sep 04 2018 CROSSREFS Cf. A047527. Sequence in context: A063111 A031063 A051938 * A210286 A275988 A177955 Adjacent sequences:  A171831 A171832 A171833 * A171835 A171836 A171837 KEYWORD nonn AUTHOR Jaroslav Krizek, Dec 19 2009 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 December 8 12:07 EST 2019. Contains 329862 sequences. (Running on oeis4.)