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!)
A249547 a(n) = (10*n^2+8*n-1+(-1)^n)/8. 4
0, 2, 7, 14, 24, 36, 51, 68, 88, 110, 135, 162, 192, 224, 259, 296, 336, 378, 423, 470, 520, 572, 627, 684, 744, 806, 871, 938, 1008, 1080, 1155, 1232, 1312, 1394, 1479, 1566, 1656, 1748, 1843, 1940, 2040, 2142, 2247, 2354, 2464, 2576, 2691, 2808, 2928, 3050 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
a(n) is the number of lattice points (x,y) in the coordinate plane bounded by y < 3x, y >= x/2 and x <= n.
a(n)+1 is the number of lattice points bounded by y <= 3x, y >= x/2 and x <= n.
LINKS
FORMULA
G.f.: x*(2+3*x)/((1-x)^3*(1+x)).
a(n) = 2*a(n-1)-2*a(n-3)+a(n-4) for n>3.
a(n) = A004526(n) + A226292(n), for n>0.
a(n) = Sum_{i=0..n} A001068(2*i). - Wesley Ivan Hurt, May 06 2016
E.g.f.: (x*(9 + 5*x)*exp(x) - sinh(x))/4. - Ilya Gutkovskiy, May 06 2016
a(2n) = A168668(n). a(2n-1) = A135706(n). - Wesley Ivan Hurt, May 09 2016
MAPLE
A249547:=n->(10*n^2+8*n-1+(-1)^n)/8: seq(A249547(n), n=0..100);
MATHEMATICA
Table[(10*n^2 + 8 n - 1 + (-1)^n)/8 , {n, 0, 50}]
PROG
(Magma) [(10*n^2+8*n-1+(-1)^n)/8 : n in [0..50]];
(PARI) a(n) = (10*n^2+8*n-1+(-1)^n)/8; \\ Michel Marcus, Nov 04 2014
(PARI) concat(0, Vec(x*(2+3*x)/((1-x)^3*(1+x)) + O(x^100))) \\ Altug Alkan, Oct 28 2015
CROSSREFS
Sequence in context: A018392 A051640 A119354 * A088207 A194111 A343859
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Oct 31 2014
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 10:51 EDT 2024. Contains 371967 sequences. (Running on oeis4.)