# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a212986 Showing 1-1 of 1 %I A212986 #13 Feb 20 2024 03:35:38 %S A212986 1,1,3,5,7,10,14,17,22,27,32,38,45,51,59,67,75,84,94,103,114,125,136, %T A212986 148,161,173,187,201,215,230,246,261,278,295,312,330,349,367,387,407, %U A212986 427,448,470,491,514,537,560,584,609,633,659,685,711,738,766 %N A212986 Number of (w,x,y) with all terms in {0,...,n} and 2w = 3x+y. %C A212986 For a guide to related sequences, see A212959. %H A212986 Index entries for linear recurrences with constant coefficients, signature (1,1,0,-1,-1,1). %F A212986 a(n) = a(n-1)+a(n-2)-a(n-4)-a(n-5)+a(n-6). %F A212986 G.f.: f(x)/g(x), where f(x) = 1 + x^2 + x^3 and g(x) = (1 + 2*x + 2*x^2 + x^3)*((1-x)^3). %t A212986 t = Compile[{{n, _Integer}}, Module[{s = 0}, (Do[If[2 w == 3 x + y, s = s + 1], {w, 0, n}, {x, 0, n}, {y, 0, n}]; s)]]; %t A212986 m = Map[t[#] &, Range[0, 70]] (* A212986 *) %Y A212986 Cf. A212959. %K A212986 nonn,easy %O A212986 0,3 %A A212986 _Clark Kimberling_, Jun 04 2012 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE