login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A213499 Number of (w,x,y) with all terms in {0,...,n} and w != min(|w-x|, |x-y|). 2
0, 4, 17, 47, 96, 176, 286, 439, 634, 885, 1188, 1561, 1997, 2515, 3108, 3796, 4569, 5451, 6429, 7528, 8735, 10076, 11535, 13142, 14878, 16774, 18811, 21021, 23382, 25930, 28640, 31549, 34632, 37927, 41406, 45111, 49011, 53149, 57494 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
For a guide to related sequences, see A212959.
LINKS
FORMULA
a(n) = a(n-1) + 2*a(n-2) - a(n-3) - 2*a(n-4) - a(n-5) + 2*a(n-6) + a(n-7) - a(n-8).
G.f.: (x*(4 + 13*x + 22*x^2 + 19*x^3 + 11*x^4 + 3*x^5))/((-1 + x)^4 (1 + x)^2 (1 + x + x^2)).
a(n) = (n+1)^3 - A213497(n).
MATHEMATICA
t = Compile[{{n, _Integer}}, Module[{s = 0}, (Do[If[w != Min[Abs[w - x], Abs[x - y]], s = s + 1], {w, 0, n}, {x, 0, n}, {y, 0, n}]; s)]];
m = Map[t[#] &, Range[0, 60]]
LinearRecurrence[{1, 2, -1, -2, -1, 2, 1, -1}, {0, 4, 17, 47, 96, 176, 286, 439}, 40] (* or *) CoefficientList[Series[(x (4+13 x+22 x^2+19 x^3+11 x^4+3 x^5))/((-1+x)^4 (1+x)^2 (1+x+x^2)), {x, 0, 40}], x] (* Harvey P. Dale, Sep 03 2021 *)
CROSSREFS
Sequence in context: A212577 A332863 A119949 * A213502 A273334 A273766
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 14 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)