OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Milan Janjic and Boris Petkovic, A Counting Function, arXiv preprint arXiv:1301.4550 [math.CO], 2013. - From N. J. A. Sloane, Feb 13 2013
Milan Janjic and Boris Petkovic, A Counting Function Generalizing Binomial Coefficients and Some Other Classes of Integers, J. Int. Seq. 17 (2014) # 14.3.5.
Index entries for linear recurrences with constant coefficients, signature (6,-12,8).
FORMULA
A007318 * (1, 1, 3, 3, 6, 6, 10, 10, 15, 15, ...) = binomial transform of triangular numbers A000217 with repeats.
From R. J. Mathar, Apr 02 2009: (Start)
G.f.: x*(x-1)^4/(1-2*x)^3.
a(n) = 6*a(n-1) - 12*a(n-2) + 8*a(n-3), n > 5. (End)
EXAMPLE
a(4) = 16 = (1, 3, 3, 1) dot (1, 1, 3, 3) = (1 + 3 + 9 + 3).
MAPLE
A000217 := proc(n) n*(n+1)/2 ; end: A008805 := proc(n) A000217( 1+floor(n/2) ) ; end: L := [seq(A008805(n), n=0..100)] ; read("transforms"); BINOMIAL(L) ; # R. J. Mathar, Apr 02 2009
MATHEMATICA
Join[{1, 2}, LinearRecurrence[{6, -12, 8}, {6, 16, 41}, 30]] (* Harvey P. Dale, Feb 25 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, Mar 30 2009
STATUS
approved