Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #14 Oct 20 2020 11:22:28
%S 1,0,3,20,205,2604,39991,720600,14913081,348678440,9090909091,
%T 261535698060,8230246567621,281241170407092,10371206370520815,
%U 410525522232055664,17361641481138401521,781282469559318055056,37275544492386193492507,1879498672877297909667780
%N a(n) = Sum_{k=0..n} (-1)^(n-k)*n^k.
%C In base n, a(n) has n digits, which are (beginning from the left): n-1, 0, n-1, 0, n-1, 0, and so on, except that if n is even the rightmost digit is 1 instead of 0. For example, a(6) in base 6 is 505051, and a(7) in base 7 is 6060606. - _Mathew Englander_, Oct 19 2020
%H Seiichi Manyama, <a href="/A081209/b081209.txt">Table of n, a(n) for n = 0..386</a>
%F a(n) = (n^(n+1)+(-1)^n)/(n+1).
%o (PARI) {a(n) = (-1)^n*sum(k=0, n, (-n)^k)} \\ _Seiichi Manyama_, Sep 12 2019
%Y Cf. A031973.
%K nonn,easy
%O 0,3
%A _Vladeta Jovovic_, Apr 17 2003