login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A238187
Gaussian norm of 1+(1+i)^n.
1
4, 5, 5, 5, 9, 25, 65, 145, 289, 545, 1025, 1985, 3969, 8065, 16385, 33025, 66049, 131585, 262145, 523265, 1046529, 2095105, 4194305, 8392705, 16785409, 33562625, 67108865, 134201345, 268402689, 536838145, 1073741825, 2147549185, 4295098369, 8590065665
OFFSET
0,1
LINKS
FORMULA
G.f.: -(10*x^3-20*x^2+15*x-4)/((x-1)*(2*x-1)*(2*x^2-2*x+1)). [Joerg Arndt, Feb 20 2014]
a(n) = 2^n + (1+i)^n + (1-i)^n + 1. [Bruno Berselli, Feb 20 2014]
MAPLE
seq(GInorm(1+(1+I)**n), n=0..33);
MATHEMATICA
Table[Norm[{1 + (1 + I)^n}]^2, {n, 0, 40}] (* Bruno Berselli, Feb 20 2014 *)
CoefficientList[Series[-(10 x^3 - 20 x^2 + 15 x - 4)/((x - 1) (2 x - 1) (2 x^2 - 2 x + 1)), {x, 0, 40}], x] (* Vincenzo Librandi, Feb 21 2014 *)
PROG
(PARI) a(n) = norml2(1+(1+I)^n); \\ Michel Marcus, Feb 19 2014
(Magma) [Floor(2^n+(1+Sqrt(-1))^n+(1-Sqrt(-1))^n+1): n in [0..40]]; // Vincenzo Librandi, Feb 21 2014
CROSSREFS
Sequence in context: A029909 A141276 A088202 * A307109 A046780 A075129
KEYWORD
nonn,easy
AUTHOR
Cristóbal Camarero, Feb 19 2014
STATUS
approved