This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A228920 Number of solutions to Sum(x_i^2, i=1...n) == 0 (mod 4). 4
 2, 4, 8, 32, 192, 1024, 4608, 18432, 69632, 262144, 1015808, 4063232, 16515072, 67108864, 270532608, 1082130432, 4311744512, 17179869184, 68585259008, 274341036032, 1098437885952, 4398046511104, 17600775979008, 70403103916032, 281543696187392 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS Colin Barker, Table of n, a(n) for n = 1..1000 Index entries for linear recurrences with constant coefficients, signature (8,-24,32). FORMULA a(n) = ((2+2i)^n + (2-2i)^n + 4^n)/4. - Charles R Greathouse IV, Sep 15 2013 G.f.: -2*x*(12*x^2-6*x+1) / ((4*x-1)*(8*x^2-4*x+1)). - Colin Barker, Nov 10 2014 MATHEMATICA Table[((2 + 2I)^n + (2 - 2I)^n + 4^n)/4, {n, 1, 30}] PROG (PARI) a(n)=((2+2*I)^n+(2-2*I)^n+4^n)/4 \\ Charles R Greathouse IV, Sep 15 2013 (PARI) Vec(-2*x*(12*x^2-6*x+1)/((4*x-1)*(8*x^2-4*x+1)) + O(x^100)) \\ Colin Barker, Nov 10 2014 CROSSREFS Cf. A228921. Sequence in context: A298989 A074406 A186340 * A064378 A191650 A036544 Adjacent sequences:  A228917 A228918 A228919 * A228921 A228922 A228923 KEYWORD nonn,easy AUTHOR José María Grau Ribas, Sep 15 2013 EXTENSIONS a(13)-a(25) from Charles R Greathouse IV, Sep 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 June 15 22:19 EDT 2019. Contains 324145 sequences. (Running on oeis4.)