login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A212745 Number of (w,x,y,z) with all terms in {0,...,n} and w=max{w,x,y,z}-2*min{w,x,y,z}. 2
1, 8, 27, 83, 162, 277, 495, 730, 1025, 1513, 1988, 2547, 3413, 4212, 5119, 6471, 7678, 9017, 10963, 12662, 14517, 17165, 19440, 21895, 25353, 28288, 31427, 35803, 39482, 43389, 48791, 53298, 58057, 64593, 70012, 75707, 83485, 89900 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

For a guide to related sequences, see A211795.

LINKS

Table of n, a(n) for n=0..37.

Index entries for linear recurrences with constant coefficients, signature (1,0,3,-3,0,-3,3,0,1,-1).

FORMULA

a(n)=a(n-1)+3*a(n-3)-3*a(n-4)-3*a(n-6)+3*a(n-7)+a(n-9)-a(n-10).

G.f.: (1+x)*(x^8+6*x^7+13*x^6+40*x^5+18*x^4+40*x^3+13*x^2+6*x+1) / ( (1+x+x^2)^3*(1-x)^4 ).

MATHEMATICA

t = Compile[{{n, _Integer}}, Module[{s = 0},

(Do[If[w == Max[w, x, y, z] - 2 Min[w, x, y, z],

  s = s + 1],

{w, 0, n}, {x, 0, n}, {y, 0, n}, {z, 0, n}]; s)]];

Map[t[#] &, Range[0, 40]]   (* A212745  *)

LinearRecurrence[{1, 0, 3, -3, 0, -3, 3, 0, 1, -1}, {1, 8, 27, 83, 162, 277, 495, 730, 1025, 1513}, 40]

CROSSREFS

Cf. A211795.

Sequence in context: A246992 A276920 A193006 * A229423 A166867 A343323

Adjacent sequences:  A212742 A212743 A212744 * A212746 A212747 A212748

KEYWORD

nonn,easy

AUTHOR

Clark Kimberling, May 26 2012

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 12 18:58 EDT 2021. Contains 342932 sequences. (Running on oeis4.)