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!)
A213480 Number of (w,x,y) with all terms in {0,...,n} and |w-x|+|x-y| != w+x+y. 3
0, 4, 16, 46, 95, 175, 285, 439, 634, 886, 1190, 1564, 2001, 2521, 3115, 3805, 4580, 5464, 6444, 7546, 8755, 10099, 11561, 13171, 14910, 16810, 18850, 21064, 23429, 25981, 28695, 31609, 34696, 37996, 41480, 45190, 49095, 53239, 57589 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

a(n)+A213479(n)=(n+1)^3.

For a guide to related sequences, see A212959.

LINKS

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

Index entries for linear recurrences with constant coefficients, signature (2,1,-4,1,2,-1).

FORMULA

a(n) = 2*a(n-1)+a(n-2)-4*a(n-3)+a(n-4)+2*a(n-5)-a(n-6).

G.f.: (4*x + 8*x^2 + 10*x^3 + 3*x^4 - x^5)/((1 - x)^4 (1 + x)^2)).

MATHEMATICA

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

(Do[If[w + x + y != Abs[w - x] + Abs[x - y], s = s + 1],

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

Map[t[#] &, Range[0, 60]]   (* A213480 *)

CROSSREFS

Cf. A212959.

Sequence in context: A134139 A213501 A097125 * A306302 A159940 A000704

Adjacent sequences:  A213477 A213478 A213479 * A213481 A213482 A213483

KEYWORD

nonn,easy

AUTHOR

Clark Kimberling, Jun 13 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 July 10 00:00 EDT 2020. Contains 335570 sequences. (Running on oeis4.)