cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-9 of 9 results.

A002727 Number of 3 X n binary matrices up to row and column permutations.

Original entry on oeis.org

1, 4, 13, 36, 87, 190, 386, 734, 1324, 2284, 3790, 6080, 9473, 14378, 21323, 30974, 44159, 61898, 85440, 116286, 156240, 207446, 272432, 354162, 456097, 582238, 737205, 926298, 1155567, 1431892, 1763074, 2157904, 2626276, 3179278, 3829294, 4590118, 5477081
Offset: 0

Views

Author

Keywords

Comments

Also, number of unlabeled bipartite graphs with three left vertices and n right vertices. - Yavuz Oruc, Jan 22 2018

Examples

			G.f. = 1 + 4*x + 13*x^2 + 36*x^3 + 87*x^4 + 190*x^5 + 386*x^6 + 734*x^7 + ...
		

References

  • A. Kerber, Experimentelle Mathematik, Séminaire Lotharingien de Combinatoire. Institut de Recherche Math. Avancée, Université Louis Pasteur, Strasbourg, Actes 19 (1988), 77-83.
  • 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).

Crossrefs

A row of the array A(m,n) described in A028657. - N. J. A. Sloane, Sep 01 2013

Programs

  • Magma
    I:=[1,4,13,36,87,190,386,734,1324,2284,3790,6080,9473, 14378]; [n le 14 select I[n] else 4*Self(n-1)-4*Self(n-2)-2*Self(n-3)+2*Self(n-4)+4*Self(n-5)+3*Self(n-6)-12*Self(n-7)+ 3*Self(n-8)+4*Self(n-9)+2*Self(n-10)-2*Self(n-11)-4*Self(n-12)+4*Self(n-13)-Self(n-14): n in [1..50]]; // Vincenzo Librandi, Oct 13 2015
    
  • Mathematica
    CoefficientList[Series[(x^6+x^4+2x^3+x^2+1)/((1-x)^4(1-x^2)^2(1-x^3)^2),{x,0,40}],x] (* or *) LinearRecurrence[{4,-4,-2,2,4,3,-12,3,4,2,-2,-4,4,-1},{1,4,13,36,87,190,386,734,1324,2284,3790,6080,9473,14378},41] (* Harvey P. Dale, Nov 10 2011 *)
    Table[Which[
    Mod[n, 3] == 0,
    1/6 (1/27 (54 + 45 n + 12 n^2 + n^3) + 1/320 (4 + n) *(225 + 15 (-1)^n + 352 n + 172 n^2 + 32 n^3 + 2 n^4) + Binomial[7 + n, 7]),
    Mod[n, 3] == 1,
    1/6 (1/27 (50 + 45 n + 12 n^2 + n^3) + 1/320 (4 + n) *(225 + 15 (-1)^n + 352 n + 172 n^2 + 32 n^3 + 2 n^4) + Binomial[7 + n, 7]),
    Mod[n, 3] == 2,
    1/6 (1/27 (28 + 39 n + 12 n^2 + n^3) + 1/320 (4 + n) *(225 + 15 (-1)^n + 352 n + 172 n^2 + 32 n^3 + 2 n^4) + Binomial[7 + n, 7])
    ], {n, 0, 100}] (* Yavuz Oruc, Jan 22 2018 *)
  • PARI
    {a(n) = (6*n^7 + 168*n^6 + 2121*n^5 + 15540*n^4 + 70084*n^3 + 190512*n^2 + n*[284544, 281709, 277824, 281709, 284544, 274989][n%6+1]) \ 181440 + 1}; /* Michael Somos, Aug 22 2016 */
    
  • PARI
    x='x+O('x^99); Vec((1+x^2+2*x^3+x^4+x^6)/((1-x)^2*((1-x)*(1-x^2)*(1-x^3))^2)) \\ Altug Alkan, Mar 03 2018
    
  • PARI
    Vec(G(3, x) + O(x^40)) \\ G defined in A028657. - Andrew Howroyd, Feb 28 2023

Formula

G.f.: (x^6+x^4+2*x^3+x^2+1)/((1-x)^4*(1-x^2)^2*(1-x^3)^2). - Vladeta Jovovic, Feb 04 2000.
a(0)=1, a(1)=4, a(2)=13, a(3)=36, a(4)=87, a(5)=190, a(6)=386, a(7)=734, a(8)=1324, a(9)=2284, a(10)=3790, a(11)=6080, a(12)=9473, a(13)=14378. For n>13, a(n)=4*a(n-1)-4*a(n-2)-2*a(n-3)+2*a(n-4)+4*a(n-5)+3*a(n-6)- 12*a(n-7)+ 3*a(n-8)+4*a(n-9)+2*a(n-10)-2*a(n-11)-4*a(n-12)+4*a(n-13)-a(n-14). - Harvey P. Dale, Nov 10 2011
a(n) = -a(-8 - n) for all n in Z. - Michael Somos, Aug 22 2016
From Yavuz Oruc, Jan 22 2018: (Start)
If n == 0 (mod 3) then a(n)=(1/6)*(binomial(n+7,7) + (3(n+4)(2n^4 + 32n^3 + 172n^2 + 352n + 15(-1)^n + 225))/960 + (2(n^3 + 12n^2 + 45n + 54))/54).
If n == 1 (mod 3) then a(n)=(1/6)*(binomial(n+7,7) + (3(n+4)(2n^4 + 32n^3 + 172n^2 + 352n + 15(-1)^n + 225))/960 + (2(n^3 + 12n^2 + 45n + 50))/54).
If n == 2 (mod 3) then a(n)=(1/6)*(binomial(n+7,7) + (3(n+4)(2n^4 + 32n^3 + 172n^2 + 352n + 15(-1)^n + 225))/960 + (2(n^3 + 12n^2 + 39n + 28))/54). (End)

Extensions

More terms from Vladeta Jovovic, Feb 04 2000
Definition corrected by Max Alekseyev, Feb 05 2010

A005232 Expansion of (1-x+x^2)/((1-x)^2*(1-x^2)*(1-x^4)).

Original entry on oeis.org

1, 1, 3, 4, 8, 10, 16, 20, 29, 35, 47, 56, 72, 84, 104, 120, 145, 165, 195, 220, 256, 286, 328, 364, 413, 455, 511, 560, 624, 680, 752, 816, 897, 969, 1059, 1140, 1240, 1330, 1440, 1540, 1661, 1771, 1903, 2024, 2168, 2300, 2456, 2600, 2769, 2925, 3107, 3276
Offset: 0

Views

Author

Keywords

Comments

Also number of n X 2 binary matrices under row and column permutations and column complementations (if offset is 0).
Also Molien series for certain 4-D representation of dihedral group of order 8.
With offset 4, number of bracelets (turnover necklaces) of n-bead of 2 colors with 4 red beads. - Washington Bomfim, Aug 27 2008
From Vladimir Shevelev, Apr 23 2011: (Start)
Also number of non-equivalent necklaces of 4 beads each of them painted by one of n colors.
The sequence solves the so-called Reis problem about convex k-gons in case k=4 (see our comment to A032279). (End)
Number of 2 X 2 matrices with nonnegative integer values totaling n under row and column permutations. - Gabriel Burns, Nov 08 2016
From Petros Hadjicostas, Jan 12 2019: (Start)
By "necklace", Vladimir Shevelev (above) means "turnover necklace", i.e., a bracelet. Zagaglia Salvi (1999) also uses this terminology: she calls a bracelet "necklace" and a necklace "cycle".
According to Cyvin et al. (1997), the sequence (a(n): n >= 0) consists of "the total numbers of isomers of polycyclic conjugated hydrocarbons with q + 1 rings and q internal carbons in one ring (class Q_q)", where q = 4 and n is the hydrogen content (i.e., we count certain isomers of C_{n+2*q} H_n with q = 4 and n >= 0). (End)

Examples

			G.f. = 1 + x + 3*x^2 + 4*x^3 + 8*x^4 + 10*x^5 + 16*x^6 + 20*x^7 + 29*x^8 + ...
There are 8 4 X 2 matrices up to row and column permutations and column complementations:
  [1 1] [1 0] [1 0] [0 1] [0 1] [0 1] [0 1] [0 0]
  [1 1] [1 1] [1 0] [1 0] [1 0] [1 0] [0 1] [0 1]
  [1 1] [1 1] [1 1] [1 1] [1 0] [1 0] [1 0] [1 0]
  [1 1] [1 1] [1 1] [1 1] [1 1] [1 0] [1 0] [1 1].
There are 8 2 X 2 matrices of nonnegative integers totaling 4 up to row and column permutations:
  [4 0] [3 1] [2 2] [2 1] [2 1] [3 0] [2 0] [1 1]
  [0 0] [0 0] [0 0] [0 1] [1 0] [1 0] [2 0] [1 1].
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • N. Zagaglia Salvi, Ordered partitions and colourings of cycles and necklaces, Bull. Inst. Combin. Appl., 27 (1999), 37-40.

Crossrefs

Row n=2 of A343875.
Column k=4 of A052307.

Programs

  • Maple
    A005232:=-(-1-z-2*z**3+2*z**2+z**7-2*z**6+2*z**4)/(z**2+1)/(1+z)**2/(z-1)**4; # conjectured by Simon Plouffe in his 1992 dissertation; gives sequence apart from an initial 1
  • Mathematica
    k = 4; Table[(Apply[Plus, Map[EulerPhi[ # ]Binomial[n/#, k/# ] &, Divisors[GCD[n, k]]]]/n + Binomial[If[OddQ[n], n - 1, n - If[OddQ[k], 2, 0]]/2, If[OddQ[k], k - 1, k]/2])/2, {n, k, 50}] (* Robert A. Russell, Sep 27 2004 *)
    CoefficientList[ Series[(1 - x + x^2)/((1 - x)^2(1 - x^2)(1 - x^4)), {x, 0, 51}], x] (* Robert G. Wilson v, Mar 29 2006 *)
    LinearRecurrence[{2,0,-2,2,-2,0,2,-1},{1,1,3,4,8,10,16,20},60] (* Harvey P. Dale, Oct 24 2012 *)
    k=4 (* Number of red beads in bracelet problem *); CoefficientList[Series[(1/k Plus@@(EulerPhi[#] (1-x^#)^(-(k/#))&/@Divisors[k])+(1+x)/(1-x^2)^Floor[(k+2)/2])/2,{x,0,50}],x] (* Herbert Kociemba, Nov 04 2016 *)
  • PARI
    {a(n) = (n^3 + 9*n^2 + (32-9*(n%2))*n + [48, 15, 36, 15][n%4+1]) / 48}; \\ Michael Somos, Feb 01 2007
    
  • PARI
    {a(n) = my(s=1); if( n<-5, n = -6-n; s=-1); if( n<0, 0, s * polcoeff( (1 - x + x^2) / ((1 - x)^2 * (1 - x^2) * (1 - x^4)) + x * O(x^n), n))}; \\ Michael Somos, Feb 01 2007
    
  • PARI
    a(n) = round((n^3 +9*n^2 +(32-9*(n%2))*n)/48 +0.6) \\ Washington Bomfim, Jul 17 2008
    
  • PARI
    a(n) = ceil((n+1)*(2*n^2+16*n+39+9*(-1)^n)/96) \\ Tani Akinari, Aug 23 2013
    
  • Python
    a=lambda n: sum((k//2+1)*((n-k)//2+1) for k in range((n-1)//2+1))+(n+1)%2*(((n//4+1)*(n//4+2))//2)  # Gabriel Burns, Nov 08 2016

Formula

G.f.: (1+x^3)/((1-x)*(1-x^2)^2*(1-x^4)).
G.f.: (1/8)*(1/(1-x)^4+3/(1-x^2)^2+2/(1-x)^2/(1-x^2)+2/(1-x^4)). - Vladeta Jovovic, Aug 05 2000
Euler transform of length 6 sequence [ 1, 2, 1, 1, 0, -1 ]. - Michael Somos, Feb 01 2007
a(2n+1) = A006918(2n+2)/2;
a(2n) = (A006918(2n+1) + A008619(n))/2.
a(n) = -a(-6 - n) for all n in Z. - Michael Somos, Feb 05 2011
From Vladimir Shevelev, Apr 22 2011: (Start)
if n == 0 (mod 4), then a(n) = n*(n^2-3*n+8)/48;
if n == 1, 3 (mod 4), then a(n) = (n^2-1)*(n-3)/48;
if n == 2 (mod 4), then a(n) = (n-2)*(n^2-n+6)/48. (End)
a(n) = 2*a(n-1) - 2*a(n-3) + 2*a(n-4) - 2*a(n-5) + 2*a(n-7) - a(n-8) with a(0) = 1, a(1) = 1, a(2) = 3, a(3) = 4, a(4) = 8, a(5) = 10, a(6) = 16, a(7) = 20. - Harvey P. Dale, Oct 24 2012
a(n) = ((n+3)*(2*n^2+12*n+19+9*(-1)^n) + 6*(-1)^((2*n-1+(-1)^n)/4)*(1+(-1)^n))/96. - Luce ETIENNE, Mar 16 2015
a(n) = |A128498(n)| + |A128498(n-3)|. - R. J. Mathar, Jun 11 2019

Extensions

Sequence extended by Christian G. Bower

A006382 Number of n X 4 binary matrices under row and column permutations and column complementations.

Original entry on oeis.org

1, 1, 5, 11, 41, 101, 301, 757, 1981, 4714, 11133, 24763, 53818, 111941, 226857, 444260, 848620, 1576226, 2862426, 5077454, 8827758, 15043096, 25183794, 41434222, 67108437, 107051463, 168402958, 261384026, 400684767, 606936536
Offset: 0

Views

Author

Keywords

Examples

			Representatives of the five classes of 2 X 4 binary matrices are:
[ 1 1 1 1 ] [ 1 1 1 0 ] [ 1 1 0 1 ] [ 1 0 1 1 ] [ 0 1 1 1 ]
[ 1 1 1 1 ] [ 1 1 1 1 ] [ 1 1 1 0 ] [ 1 1 0 0 ] [ 1 0 0 0 ]
		

References

  • M. A. Harrison, On the number of classes of binary matrices, IEEE Trans. Computers, 22 (1973), 1048-1051.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Column k=4 of A363349.

Formula

G.f. : (1/(1 - x^1)^16 + 51/(1 - x^2)^8 + 12/(1 - x^1)^8/(1 - x^2)^4 + 84/(1 - x^4)^4 + 12/(1 - x^1 )^4/(1 - x^2)^6 + 32/(1 - x^1)^4/(1 - x^3)^4 + 96/(1 - x^2)^2/(1 - x^6)^2 + 48/(1 - x^1)^2/(1 - x^2)^1/(1 - x^4)^3 + 48/(1 - x^8)^2)/384.

Extensions

Entry revised by Vladeta Jovovic, Aug 05 2000

A363349 Array read by antidiagonals: T(n,k) is the number of equivalence classes of n X k binary matrices under permutation of rows and columns and complementation of columns.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 1, 4, 4, 3, 1, 1, 1, 5, 7, 8, 3, 1, 1, 1, 6, 11, 19, 10, 4, 1, 1, 1, 7, 16, 41, 32, 16, 4, 1, 1, 1, 8, 23, 81, 101, 68, 20, 5, 1, 1, 1, 9, 31, 153, 299, 301, 114, 29, 5, 1, 1, 1, 10, 41, 273, 849, 1358, 757, 210, 35, 6, 1
Offset: 0

Views

Author

Andrew Howroyd, May 28 2023

Keywords

Comments

T(n,k) is also the number of equivalence classes of n X k binary matrices with an even number of 1's in each column under permutation of rows and columns.

Examples

			Array begins:
======================================================
n/k| 0 1  2   3    4     5      6       7        8 ...
---+--------------------------------------------------
0  | 1 1  1   1    1     1      1       1        1 ...
1  | 1 1  1   1    1     1      1       1        1 ...
2  | 1 2  3   4    5     6      7       8        9 ...
3  | 1 2  4   7   11    16     23      31       41 ...
4  | 1 3  8  19   41    81    153     273      468 ...
5  | 1 3 10  32  101   299    849    2290     5901 ...
6  | 1 4 16  68  301  1358   6128   27008   114763 ...
7  | 1 4 20 114  757  5567  43534  343656  2645494 ...
8  | 1 5 29 210 1981 23350 319119 4633380 67013431 ...
  ...
		

Crossrefs

A259344 is the same array without the first row and column read by upward antidiagonals.
Columns k=0..6 are A000012, A004526(n+2), A005232, A006381, A006382, A056204, A056205.
Rows n=2..4 are A000027(n+1), A000601, A006380.
Main diagonal is A006383.

Programs

  • PARI
    \\ Compare A028657.
    permcount(v) = {my(m=1, s=0, k=0, t); for(i=1, #v, t=v[i]; k=if(i>1&&t==v[i-1], k+1, 1); m*=t*k; s+=t); s!/m}
    K(q, t)={sum(j=1, #q, gcd(t, q[j]))}
    T(n, k)={if(n==0, 1, my(s=0); forpart(q=n, my(e=1<
    				

A006383 Number of equivalence classes of n X n binary matrices when one can permute rows, permute columns and complement columns.

Original entry on oeis.org

1, 1, 3, 7, 41, 299, 6128, 343656, 67013431, 45770163273, 108577103160005, 886929528971819040, 24943191706060101926577, 2425246700258693990625775794, 820270898724825121532156178527106
Offset: 0

Views

Author

Keywords

Examples

			a(2) = 3:
00 10 11
00 00 00
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Main diagonal of A363349.

Extensions

Definition corrected by Brendan McKay, Jan 07 2007
Terms a(7) onward from Max Alekseyev, Feb 05 2010

A056204 Number of n X 5 binary matrices under row and column permutations and column complementations.

Original entry on oeis.org

1, 1, 6, 16, 81, 299, 1358, 5567, 23350, 91998, 351058, 1269907, 4394634, 14495236, 45779246, 138567568, 403282017, 1130773069, 3062535192, 8028046724, 20411824364, 50429813556, 121280243676, 284360432241, 650972702410
Offset: 0

Views

Author

Vladeta Jovovic, Aug 05 2000

Keywords

References

  • M. A. Harrison, On the number of classes of binary matrices, IEEE Trans. Computers, 22 (1973), 1048-1051.

Crossrefs

Formula

G.f.: 1/3840*(1/(1 - x^1)^32 + 231/(1 - x^2)^16 + 20/(1 - x^1)^16/(1 - x^2)^8 + 520/(1 - x^4)^8 + 60/(1 - x^1)^8/(1 - x^2)^12 + 80/(1 - x^1)^8/(1 - x^3)^8 + 720/(1 - x^2)^4/(1 - x^6)^4 + 160/(1 - x^1)^4/(1 - x^2)^2/(1 - x^3)^4/(1 - x^6)^2 + 320/(1 - x^4)^2/(1 - x^12)^2 + 240/(1 - x^1)^4/(1 - x^2)^2/(1 - x^4)^6 + 480/(1 - x^8)^4 + 240/(1 - x^2)^4/(1 - x^4)^6 + 384/(1 - x^1)^2/(1 - x^5)^6 + 384/(1 - x^2)^1/(1 - x^10)^3).

A056205 Number of n X 6 binary matrices under row and column permutations and column complementations.

Original entry on oeis.org

1, 1, 7, 23, 153, 849, 6128, 43534, 319119, 2255466, 15307395, 98349144, 597543497, 3430839916, 18653684881, 96273409815, 473010823993, 2218614773950, 9961651259869, 42927432229913, 177963663264430
Offset: 0

Views

Author

Vladeta Jovovic, Aug 05 2000

Keywords

References

  • M. A. Harrison, On the number of classes of binary matrices, IEEE Trans.Computers, 22 (1973), 1048-1051.

Crossrefs

Formula

G.f.: 1/46080*(1/(1 - x^1)^64 + 1053/(1 - x^2)^32 + 30/(1 - x^1)^32/(1 - x^2)^16 + 4920/(1 - x^4)^16 + 180/(1 - x^1)^16/(1 - x^2)^24 + 120/(1 - x^1)^8/(1 - x^2)^28 + 160/(1 - x^1)^16/(1 - x^3)^16 + 5280/(1 - x^2)^8/(1 - x^6)^8 + 960/(1 - x^1)^8/(1 - x^2)^4/(1 - x^3)^8/(1 - x^6)^4 + 3840/(1 - x^4)^4/(1 - x^12)^4 + 640/(1 - x^1)^4/(1 - x^3)^20 + 1920/(1 - x^2)^2/(1 - x^6)^10 + 720/(1 - x^1)^8/(1 - x^2)^4/(1 - x^4)^12 + 5760/(1 - x^8)^8 + 2160/(1 - x^2)^8/(1 - x^4)^12 + 1440/(1 - x^1)^4/(1 - x^2)^6/(1 - x^4)^12 + 2304/(1 - x^1)^4/(1 - x^5)^12 + 6912/(1 - x^2)^2/(1 - x^10)^6 + 3840/(1 - x^1)^2/(1 - x^2)^1/(1 - x^3)^2/(1 - x^6)^9 + 3840/(1 - x^4)^1/(1 - x^12)^5).

A097513 Number of ways to label the vertices of the octahedron (or faces of the cube) with nonnegative integers summing to n, where labelings that differ only by rotation or reflection are considered the same.

Original entry on oeis.org

1, 1, 3, 5, 10, 15, 27, 38, 60, 84, 122, 164, 229, 298, 398, 509, 658, 823, 1041, 1278, 1582, 1917, 2331, 2786, 3343, 3948, 4676, 5471, 6408, 7428, 8622, 9912, 11406, 13023, 14871, 16866, 19135, 21571, 24321, 27275, 30580, 34122, 38070, 42284, 46956, 51942
Offset: 0

Views

Author

Isabel C. Lugo (izzycat(AT)gmail.com), Aug 26 2004

Keywords

Examples

			a(3) = 5 because we can label the faces of the cube with nonnegative integers summing to three in five ways: 3 on one face, 2 on one face and 1 on an adjacent face, 2 on one face and 1 on the opposite face, 1 on three faces sharing a corner, 1 on three faces not sharing a corner.
		

Crossrefs

Cf. A006381.

Programs

  • Maple
    a:= n-> (Matrix([[1, 0$8, -1$2, -3, -5, -10, -15, -27, -38]]).Matrix(17, (i,j)-> if (i=j-1) then 1 elif j=1 then [2, 0, -1, 0, -2, 3, -2, 1, 1, -2, 3, -2, 0, -1, 0, 2, -1][i] else 0 fi)^n)[1,1]; seq(a(n), n=0..50); # Alois P. Heinz, Jul 31 2008

Formula

G.f.: (q^8-q^7+q^6+q^4+q^2-q+1)/((-1+q)^6*(q+1)^3*(q^2+q+1)^2*(q^2-q+1)*(q^2+1)).
a(n) is asymptotically equal to n^5/5760. - Isabel C. Lugo (izzycat(AT)gmail.com), Aug 31 2004

A362906 Number of n element multisets of length 3 vectors over GF(2) that sum to zero.

Original entry on oeis.org

1, 1, 8, 15, 50, 99, 232, 429, 835, 1430, 2480, 3978, 6372, 9690, 14640, 21318, 30789, 43263, 60280, 82225, 111254, 148005, 195416, 254475, 329095, 420732, 534496, 672452, 841160, 1043460, 1287648, 1577532, 1923465, 2330445, 2811240, 3372291, 4029178
Offset: 0

Views

Author

Andrew Howroyd, May 27 2023

Keywords

Comments

a(n) is the number of n X 3 binary matrices under row permutations and column complementations.
See A362905 for other interpretations.

Examples

			The a(1) = 1 multiset is {000}.
The a(2) = 8 multisets are {000, 000}, {001, 001}, {010, 010}, {011, 011}, {100, 100}, {101, 101}, {110, 110}, {111, 111}.
The a(3) = 15 multisets are {000, 000, 000}, {000, 001, 001}, {000, 010, 010}, {000, 011, 011}, {000, 100, 100}, {000, 101, 101}, {000, 110, 110}, {000, 111, 111}, {001, 010, 011}, {001, 100, 101}, {001, 110, 111}, {010, 100, 110}, {010, 101, 111}, {011, 100, 111}, {011, 101, 110}.
		

Crossrefs

Column k=3 of A362905.
Cf. A006381.

Programs

  • Mathematica
    A362906[n_]:=(Binomial[n+7,7]+If[EvenQ[n],7Binomial[n/2+3,3],0])/8;Array[A362906,50,0] (* Paolo Xausa, Nov 18 2023 *)
  • PARI
    a(n) = (binomial(n+7,7) + if(n%2==0, 7*binomial(n/2+3, 3)))/8

Formula

G.f.: (1 - 3*x + 6*x^2 - 3*x^3 + x^4)/((1 - x)^8*(1 + x)^4).
a(n) = binomial(n+7, 7)/8 for odd n;
a(n) = (binomial(n+7, 7) + 7*binomial(n/2+3, 3))/8 for even n.
Showing 1-9 of 9 results.