A229093 The clubs patterns appearing in n X n coins.
0, 0, 1, 2, 4, 6, 9, 12, 17, 22, 27, 34, 41, 48, 57, 66, 75, 86, 97, 108, 121, 134, 147, 162, 177, 192, 209, 226, 243, 262, 281, 300, 321, 342, 363, 386, 409, 432, 457, 482, 507, 534, 561, 588, 617, 646, 675, 706, 737, 768, 801, 834, 867, 902, 937, 972, 1009, 1046
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Kival Ngaokrajang, Illustration for initial terms
- Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
Programs
-
Mathematica
CoefficientList[Series[(x^7 - 2 x^6 + x^5 - x^4 + x^3 - x^2 - 1)/((x - 1)^3 (x^2 + x + 1)), {x, 0, 50}], x] (* Vincenzo Librandi, Oct 08 2013 *) LinearRecurrence[{2,-1,1,-2,1},{0,0,1,2,4,6,9,12,17,22},70] (* Harvey P. Dale, Feb 05 2020 *)
-
PARI
Vec(x^2*(x^7-2*x^6+x^5-x^4+x^3-x^2-1)/((x-1)^3*(x^2+x+1)) + O(x^100)) \\ Colin Barker, Oct 08 2013
-
PARI
a(n) = ceil((n-1)^2/3) \\ Charles R Greathouse IV, Jan 06 2016
Formula
a(n) = ceiling((n-1)^2/3), a(0) = 0, a(4) = 4.
G.f.: x^2*(x^7-2*x^6+x^5-x^4+x^3-x^2-1) / ((x-1)^3*(x^2+x+1)). - Colin Barker, Oct 07 2013
Extensions
More terms from Colin Barker, Oct 08 2013
Comments