This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A006496 M0933 #69 Jan 05 2025 19:51:34 %S A006496 0,2,4,-2,-24,-38,44,278,336,-718,-3116,-2642,10296,33802,16124, %T A006496 -136762,-354144,-24478,1721764,3565918,-1476984,-20783558,-34182196, %U A006496 35553398,242017776,306268562,-597551756,-2726446322,-2465133864,8701963882,29729597084,15949374758 %N A006496 Imaginary part of (1+2i)^n. %C A006496 The absolute values of these numbers are the even numbers x such that x^2 + y^2 = 5^n with x and y coprime. See A098122. - _T. D. Noe_, Apr 14 2011 %D A006496 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). %H A006496 Vincenzo Librandi, <a href="/A006496/b006496.txt">Table of n, a(n) for n = 0..200</a> %H A006496 George Berzsenyi, <a href="https://web.archive.org/web/2024*/https://www.fq.math.ca/Scanned/15-3/berzsenyi.pdf">Gaussian Fibonacci numbers</a>, Fib. Quart., Vol. 15, No. 3 (1977), pp. 233-236. %H A006496 <a href="/index/Ga#gaussians">Index entries for Gaussian integers and primes</a>. %H A006496 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (2,-5). %F A006496 a(n) = 2*a(n-1) - 5*a(n-2); a(0)=0, a(1)=2. - _T. D. Noe_, Nov 09 2006 %F A006496 a(n) = - [M^n]_1,2, where M = [1, -2; 2, 1]. - _Simone Severini_, Apr 25 2007 %F A006496 A000351(n) = A006495(n)^2 + a(n)^2. - _Fabrice Baubet_, May 28 2007 %F A006496 From _R. J. Mathar_, Apr 06 2008: (Start) %F A006496 O.g.f.: 2*x/(1 - 2*x + 5*x^2). %F A006496 a(n) = 2*A045873(n). (End) %F A006496 E.g.f.: exp(x)*sin(2*x). - _Sergei N. Gladkovskii_, Jul 22 2012 %F A006496 a(n)/A006495(n) = -tan(2*n*arctan(phi)), where phi is the golden ratio (A001622). - _Amiram Eldar_, Jan 13 2022 %t A006496 LinearRecurrence[{2,-5},{0,2},30] (* _Vincenzo Librandi_, Dec 21 2011 *) %o A006496 (Magma) I:=[0,2]; [n le 2 select I[n] else 2*Self(n-1)-5*Self(n-2): n in [1..40]]; // _Vincenzo Librandi_, Dec 21 2011 %o A006496 (PARI) a(n)=([1, -2; 2, 1]^n)[1,2] \\ _Charles R Greathouse IV_, Dec 22 2011 %Y A006496 Cf. A000351, A001622, A006495, A098122, A045873. %K A006496 sign,easy %O A006496 0,2 %A A006496 _N. J. A. Sloane_ %E A006496 Signs from _Christian G. Bower_, Nov 15 1998 %E A006496 Corrected by _T. D. Noe_, Nov 09 2006 %E A006496 More terms from _R. J. Mathar_, Apr 06 2008