cp's OEIS Frontend

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.

A115415 Real part of (n + i)^n, with i=sqrt(-1).

This page as a plain text file.
%I A115415 #32 Jan 01 2025 09:56:08
%S A115415 1,1,3,18,161,1900,27755,482552,9722113,222612624,5707904499,
%T A115415 161981127968,5039646554593,170561613679808,6237995487261915,
%U A115415 245159013138710400,10303367499652761601,461102348510408544512,21891769059478538933603,1098983344602124698522112
%N A115415 Real part of (n + i)^n, with i=sqrt(-1).
%H A115415 Seiichi Manyama, <a href="/A115415/b115415.txt">Table of n, a(n) for n = 0..386</a>
%F A115415 a(n) = n! * [x^n] exp(n*x)*cos(x). - _Ilya Gutkovskiy_, Apr 10 2018
%F A115415 a(n) ~ cos(1) * n^n. - _Vaclav Kotesovec_, Jun 08 2019
%F A115415 a(n) = Sum_{j=0..floor(n/2)} binomial(n,2j)*n^(n-2j)*(-1)^j. - _Chai Wah Wu_, Feb 15 2024
%F A115415 a(n) = (1/2)*((n + i)^n + (n - i)^n) where i is the imaginary unit. - _Gerry Martens_, Dec 30 2024
%t A115415 Table[ Re[(n + I)^n], {n, 0, 17}] (* _Robert G. Wilson v_, Jan 23 2006 *)
%o A115415 (PARI) a(n) = real((n + I)^n); \\ _Michel Marcus_, Apr 11 2018
%o A115415 (Python)
%o A115415 from math import comb
%o A115415 def A115415(n): return sum(comb(n,j)*n**(n-j)*(-1 if j&2 else 1) for j in range(0,n+1,2)) # _Chai Wah Wu_, Feb 15 2024
%Y A115415 Cf. A000312, A009545, A115416 (imaginary part), A121626, A370189.
%K A115415 nonn
%O A115415 0,3
%A A115415 _Reinhard Zumkeller_, Jan 22 2006
%E A115415 More terms from _Robert G. Wilson v_, Jan 23 2006