A000749
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3), n > 3, with a(0)=a(1)=a(2)=0, a(3)=1.
Original entry on oeis.org
0, 0, 0, 1, 4, 10, 20, 36, 64, 120, 240, 496, 1024, 2080, 4160, 8256, 16384, 32640, 65280, 130816, 262144, 524800, 1049600, 2098176, 4194304, 8386560, 16773120, 33550336, 67108864, 134225920, 268451840, 536887296, 1073741824, 2147450880
Offset: 0
a(4;1,1)=4 since the four binary strings of trace 1, subtrace 1 and length 4 are { 0111, 1011, 1101, 1110 }.
- Higher Transcendental Functions, Bateman Manuscript Project, Vol. 3, ed. A. Erdelyi, 1983 (chapter XVIII).
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- T. D. Noe, Table of n, a(n) for n = 0..200
- H. W. Gould, Binomial coefficients, the bracket function and compositions with relatively prime summands, Fib. Quart. 2(4) (1964), 241-260.
- Maran van Heesch, The multiplicative complexity of symmetric functions over a field with characteristic p, Thesis, 2014.
- Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992; arXiv:0911.4975 [math.NT], 2009.
- Simon Plouffe, 1031 Generating Functions, Appendix to Thesis, Montreal, 1992.
- F. Ruskey, Strings over Z_2 with given trace and subtrace
- F. Ruskey, Strings over GF(2) with given trace and subtrace
- Vladimir Shevelev, Combinatorial identities generated by difference analogs of hyperbolic and trigonometric functions of order n, arXiv:1706.01454 [math.CO], 2017.
- Index entries for linear recurrences with constant coefficients, signature (4,-6,4).
-
a000749 n = a000749_list !! n
a000749_list = 0 : 0 : 0 : 1 : zipWith3 (\u v w -> 4 * u - 6 * v + 4 * w)
(drop 3 a000749_list) (drop 2 a000749_list) (drop 1 a000749_list)
-- Reinhard Zumkeller, Jul 15 2013
-
I:=[0,0,0,1]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3): n in [1..40]]; // Vincenzo Librandi, Dec 31 2015
-
A000749 := proc(n) local k; add(binomial(n,4*k+3),k=0..floor(n/4)); end;
A000749:=-1/((2*z-1)*(2*z**2-2*z+1)); # Simon Plouffe in his 1992 dissertation
a:= n-> if n=0 then 0 else (Matrix(3, (i,j)-> if (i=j-1) then 1 elif j=1 then [4,-6,4][i] else 0 fi)^(n-1))[1,3] fi: seq(a(n), n=0..33); # Alois P. Heinz, Aug 26 2008
# Alternatively:
s := sqrt(2): h := n -> [0,-s,-2,-s,0,s,2,s][1+(n mod 8)]:
a := n -> `if`(n=0,0,(2^n+2^(n/2)*h(n))/4):
seq(a(n),n=0..33); # Peter Luschny, Jun 14 2017
-
Join[{0},LinearRecurrence[{4,-6,4},{0,0,1},40]] (* Harvey P. Dale, Mar 31 2012 *)
CoefficientList[Series[x^3/(1 -4x +6x^2 -4x^3), {x,0,80}], x] (* Vincenzo Librandi, Dec 31 2015 *)
-
a(n)=sum(k=0,n\4,binomial(n,4*k+3))
-
@CachedFunction
def a(n): # a = A000749
if (n<4): return (n//3)
else: return 4*a(n-1) -6*a(n-2) +4*a(n-3)
[a(n) for n in range(41)] # G. C. Greubel, Apr 11 2023
Additional comments from Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Nov 22 2002
A000748
Expansion of bracket function.
Original entry on oeis.org
1, -3, 6, -9, 9, 0, -27, 81, -162, 243, -243, 0, 729, -2187, 4374, -6561, 6561, 0, -19683, 59049, -118098, 177147, -177147, 0, 531441, -1594323, 3188646, -4782969, 4782969, 0, -14348907, 43046721, -86093442, 129140163, -129140163, 0, 387420489, -1162261467
Offset: 0
G.f. = 1 - 3*x + 6*x^2 - 9*x^3 + 9*x^4 - 27*x^6 + 81*x^7 - 162*x^8 + ...
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
- Alois P. Heinz, Table of n, a(n) for n = 0..1000
- H. W. Gould, Binomial coefficients, the bracket function and compositions with relatively prime summands, Fib. Quart. 2(4) (1964), 241-260.
- Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992; arXiv:0911.4975 [math.NT], 2009.
- Simon Plouffe, 1031 Generating Functions, Appendix to Thesis, Montreal, 1992
- Index entries for linear recurrences with constant coefficients, signature (-3,-3).
-
I:=[1,-3]; [n le 2 select I[n] else -3*Self(n-1)-3*Self(n-2): n in [1..40]]; // Vincenzo Librandi, Feb 11 2016
-
A000748:=(-1-2*z-3*z**2-3*z**3+18*z**5)/(-1+z+9*z**5); # conjectured by Simon Plouffe in his 1992 dissertation; gives sequence apart from signs
a:= n-> (Matrix([[ -3,1], [ -3,0]])^n)[1,1]: seq(a(n), n=0..40); # Alois P. Heinz, Sep 06 2008
-
a[n_] := 2*3^(n/2)*Sin[(1-5*n)*Pi/6]; Table[a[n], {n, 0, 40}] (* Jean-François Alcover, Mar 12 2014 *)
LinearRecurrence[{-3, -3}, {1, -3}, 40] (* Jean-François Alcover, Feb 11 2016 *)
-
{a(n) = if( n<0, 0, polcoeff(1 / (1 + 3*x + 3*x^2) + x * O(x^n), n))}; /* Michael Somos, Jun 07 2005 */
-
{a(n) = if( n<0, 0, 3^((n+1)\2) * (-1)^(n\6) * ((-1)^n + (n%3==2)))}; /* Michael Somos, Sep 29 2007 */
A049016
Expansion of 1/((1-x)^5 - x^5).
Original entry on oeis.org
1, 5, 15, 35, 70, 127, 220, 385, 715, 1430, 3004, 6385, 13380, 27370, 54740, 107883, 211585, 416405, 826045, 1652090, 3321891, 6690150, 13455325, 26985675, 53971350, 107746282, 214978335, 429124630, 857417220, 1714834440, 3431847189
Offset: 0
-
R:=PowerSeriesRing(Integers(), 30); Coefficients(R!( 1/((1-x)^5-x^5) )); // G. C. Greubel, Apr 11 2023
-
CoefficientList[Series[1/((1-x)^5-x^5),{x,0,30}],x] (* or *) LinearRecurrence[ {5,-10,10,-5,2},{1,5,15,35,70},40] (* Harvey P. Dale, Jan 20 2014 *)
-
def A049016_list(prec):
P. = PowerSeriesRing(ZZ, prec)
return P( 1/((1-x)^5-x^5) ).list()
A049016_list(30) # G. C. Greubel, Apr 11 2023
A049017
Expansion of 1/((1-x)^7 - x^7).
Original entry on oeis.org
1, 7, 28, 84, 210, 462, 924, 1717, 3017, 5110, 8568, 14756, 27132, 54264, 116281, 257775, 572264, 1246784, 2641366, 5430530, 10861060, 21242341, 40927033, 78354346, 150402700, 291693136, 574274008, 1148548016, 2326683921, 4749439975, 9714753412, 19818498700, 40199107690
Offset: 0
-
R:=PowerSeriesRing(Integers(), 40); Coefficients(R!( 1/((1-x)^7 - x^7) )); // G. C. Greubel, Apr 11 2023
-
CoefficientList[Series[1/((1-x)^7-x^7),{x,0,30}],x] (* Harvey P. Dale, Feb 18 2011 *)
-
Vec(1/((1-x)^7-x^7)+O(x^99)) \\ M. F. Hasler, Mar 05 2017
-
def A049017_list(prec):
P. = PowerSeriesRing(ZZ, prec)
return P( 1/((1-x)^7 - x^7) ).list()
A049017_list(40) # G. C. Greubel, Apr 11 2023
A001659
Expansion of bracket function.
Original entry on oeis.org
1, 1, -1, 2, -5, 13, -33, 80, -184, 402, -840, 1699, -3382, 6750, -13716, 28550, -60587, 129579, -275915, 579828, -1197649, 2431775, -4870105, 9672634, -19173013, 38151533, -76521331, 154941608, -316399235, 649807589, -1337598675, 2751021907, -5640238583, 11513062785, -23389948481, 47310801199, -95345789479, 191616365385
Offset: 1
- N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
-
Table[Sum[(-1)^(n - k)*Binomial[n, k]*Sum[Floor[k/j], {j, 1, k}], {k, 0, n}], {n, 1, 50}] (* G. C. Greubel, Jul 02 2017 *)
-
a(n)=sum(j=0,n,(-1)^(n-j)*binomial(n,j)*sum(k=1,j,j\k))
-
a(n)=polcoeff(sum(k=1,n,x^k/((1+x)^k-x^k),x*O(x^n)),n)
A006090
Expansion of bracket function.
Original entry on oeis.org
1, -6, 21, -56, 126, -252, 463, -804, 1365, -2366, 4368, -8736, 18565, -40410, 87381, -184604, 379050, -758100, 1486675, -2884776, 5592405, -10919090, 21572460, -43144920, 87087001, -176565486, 357913941, -723002336
Offset: 0
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- H. W. Gould, Binomial coefficients, the bracket function and compositions with relatively prime summands, Fib. Quart. 2, issue 4, (1964), 241-260.
- Problems Drive, Eureka, 37 (1974), 8-11, 32-33, 24-27. (Annotated scanned copy)
- Index entries for linear recurrences with constant coefficients, signature (-6,-15,-20,-15,-6).
-
CoefficientList[Series[1/((1+x)^6-x^6),{x,0,30}],x] (* or *) LinearRecurrence[ {-6,-15,-20,-15,-6},{1,-6,21,-56,126},31] (* Harvey P. Dale, Oct 14 2016 *)
-
x='x+O('x^50); Vec(1/((1+x)^6-x^6)) \\ G. C. Greubel, Jul 02 2017
A307047
Square array A(n,k), n >= 0, k >= 1, read by antidiagonals, where column k is the expansion of g.f. 1/((1+x)^k-x^k).
Original entry on oeis.org
1, 1, 0, 1, -2, 0, 1, -3, 4, 0, 1, -4, 6, -8, 0, 1, -5, 10, -9, 16, 0, 1, -6, 15, -20, 9, -32, 0, 1, -7, 21, -35, 36, 0, 64, 0, 1, -8, 28, -56, 70, -64, -27, -128, 0, 1, -9, 36, -84, 126, -125, 120, 81, 256, 0, 1, -10, 45, -120, 210, -252, 200, -240, -162, -512, 0
Offset: 0
Square array begins:
1, 1, 1, 1, 1, 1, 1, 1, ...
0, -2, -3, -4, -5, -6, -7, -8, ...
0, 4, 6, 10, 15, 21, 28, 36, ...
0, -8, -9, -20, -35, -56, -84, -120, ...
0, 16, 9, 36, 70, 126, 210, 330, ...
0, -32, 0, -64, -125, -252, -462, -792, ...
0, 64, -27, 120, 200, 463, 924, 1716, ...
0, -128, 81, -240, -275, -804, -1715, -3432, ...
0, 256, -162, 496, 275, 1365, 2989, 6436, ...
-
T[n_, k_] := (-1)^n * Sum[(-1)^(j * Mod[k, 2]) * Binomial[n + k - 1, k*j + k - 1], {j, 0, Floor[n/k]}]; Table[T[n - k, k], {n, 0, 11}, {k, n, 1, -1}] // Flatten (* Amiram Eldar, May 20 2021 *)
A373463
Expansion of 1/((1 + x)^5 - 2*x^5).
Original entry on oeis.org
1, -5, 15, -35, 70, -124, 190, -220, 55, 715, -2999, 8585, -20580, 43520, -81940, 134376, -176195, 118435, 279235, -1572395, 4900626, -12339900, 27139450, -53163300, 91745475, -131888749, 125584845, 66464465, -781173960, 2736565920, -7295547624, 16717081040
Offset: 0
-
CoefficientList[Series[1/((1+x)^5-2x^5),{x,0,40}],x] (* or *) LinearRecurrence[{-5,-10,-10,-5,1},{1,-5,15,-35,70},40] (* Harvey P. Dale, May 25 2025 *)
-
my(N=40, x='x+O('x^N)); Vec(1/((1+x)^5-2*x^5))
Showing 1-8 of 8 results.
Comments