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 A211538 #28 Sep 08 2022 08:46:02 %S A211538 0,0,0,1,3,5,9,12,18,22,30,35,45,51,63,70,84,92,108,117,135,145,165, %T A211538 176,198,210,234,247,273,287,315,330,360,376,408,425,459,477,513,532, %U A211538 570,590,630,651,693,715,759,782,828,852,900,925,975,1001,1053,1080,1134,1162 %N A211538 Number of ordered triples (w,x,y) with all terms in {1,...,n} and 2w=2n-2x-y. %C A211538 For a guide to related sequences, see A211422. %C A211538 Partial sums of A029578. - _Reinhard Zumkeller_, Nov 27 2012 %H A211538 Reinhard Zumkeller, <a href="/A211538/b211538.txt">Table of n, a(n) for n = 1..10000</a> %H A211538 Bruno Berselli, <a href="/A211538/a211538.jpg">Illustration of the initial positive terms</a> %H A211538 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,2,-2,-1,1). %F A211538 a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5). %F A211538 a(n) = (6*n^2-26*n+25-(2*n-7)*(-1)^n)/16, from _Luce ETIENNE_. [_Bruno Berselli_, Jun 03 2014] %F A211538 From _Wesley Ivan Hurt_, May 18 2015: (Start) %F A211538 G.f.: x^3*(1 + 2 x)/((1 - x)^3*(x + 1)^2). %F A211538 a(n) = Sum_{i=ceiling((n-3)/2)..n-3} i. (End) %p A211538 A211538:=n->(6*n^2-26*n+25-(2*n-7)*(-1)^n)/16: seq(A211538(n), n=1..100); # _Wesley Ivan Hurt_, May 18 2015 %t A211538 t[n_] := t[n] = Flatten[Table[2 w + 2 x + y - 2 n, {w, n}, {x, n}, {y, n}]]; c[n_] := Count[t[n], 0]; t = Table[c[n], {n, 0, 70}] %t A211538 Table[(6*n^2 - 26*n + 25 - (2*n - 7)*(-1)^n)/16, {n, 100}] (* _Wesley Ivan Hurt_, May 18 2015 *) %t A211538 LinearRecurrence[{1, 2, -2, -1, 1}, {0, 0, 0, 1, 3}, 70] (* _Vincenzo Librandi_, May 19 2015 *) %o A211538 (Haskell) %o A211538 a211538 n = a211538_list !! (n-1) %o A211538 a211538_list = scanl (+) 0 a029578_list %o A211538 -- _Reinhard Zumkeller_, Nov 27 2012 %o A211538 (Magma) [(6*n^2-26*n+25-(2*n-7)*(-1)^n)/16: n in [1..60]]; // _Bruno Berselli_, Jun 03 2014 %Y A211538 Cf. A211422. %K A211538 nonn,easy %O A211538 1,5 %A A211538 _Clark Kimberling_, Apr 15 2012