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.

A353018 a(n) = Sum_{k=0..floor(n/3)} (n-3*k)^(n-3*k).

This page as a plain text file.
%I A353018 #14 Apr 16 2022 11:20:13
%S A353018 1,1,4,28,257,3129,46684,823800,16780345,387467173,10000823800,
%T A353018 285328450956,8916487915429,302885107416053,11112292154008972,
%U A353018 437902806868774804,18447046958816967669,827251374178490773149,39346845978103406350228
%N A353018 a(n) = Sum_{k=0..floor(n/3)} (n-3*k)^(n-3*k).
%F A353018 G.f.: ( Sum_{k>=0} (k * x)^k )/(1 - x^3).
%t A353018 a[n_] := Sum[If[3*k == n, 1, (n - 3*k)^(n - 3*k)], {k, 0, Floor[n/3]}]; Array[a, 20, 0] (* _Amiram Eldar_, Apr 16 2022 *)
%o A353018 (PARI) a(n) = sum(k=0, n\3, (n-3*k)^(n-3*k));
%o A353018 (PARI) my(N=20, x='x+O('x^N)); Vec(sum(k=0, N, (k*x)^k)/(1-x^3))
%Y A353018 Cf. A062970, A353009.
%Y A353018 Cf. A001840, A353014, A353015.
%K A353018 nonn,easy
%O A353018 0,3
%A A353018 _Seiichi Manyama_, Apr 16 2022