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!)
A290324 Number of (undirected) paths in the complete tripartite graph K_{n,n,n}. 1

%I #20 Apr 26 2021 06:27:09

%S 6,396,67554,28336848,23986682550,35931274250076,87017657752978386,

%T 318992998488391738944,1683675635040443830593798,

%U 12301777316059025283613106700,120545445185882926234784081616546,1543421856441404929844846263740167376

%N Number of (undirected) paths in the complete tripartite graph K_{n,n,n}.

%H Andrew Howroyd, <a href="/A290324/b290324.txt">Table of n, a(n) for n = 1..50</a>

%H Andrew Howroyd, <a href="/A290324/a290324.txt">Formula for the number of paths</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/CompleteTripartiteGraph.html">Complete Tripartite Graph</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/GraphPath.html">Graph Path</a>

%t c[n_, k_, i_, j_, p_]:=Binomial[n, k] Binomial[n, i + p] Binomial[n, j + p] Binomial[k, i] Binomial[k - i, j] k!*(i + p)!*(j + p)!*2^(k - i - j)*Binomial[p + i + j - 1, k - 1](1 + n - k); a[n_]:=3*Sum[Sum[Sum[Sum[c[n, k, i, j, p], {p, k - i - j, n}], {j, 0, k - i}], {i, 0, k}], {k, n}]/2; Table[a[n], {n, 12}] (* _Indranil Ghosh_, Aug 14 2017, after PARI *)

%o (PARI)

%o c(n, k, i, j, p) = {binomial(n, k)*binomial(n, i+p)*binomial(n, j+p)*binomial(k, i)

%o * binomial(k-i, j)*k!*(i+p)!*(j+p)!*2^(k-i-j)*binomial(p+i+j-1, k-1)*(1+n-k)}

%o a(n)={3*(sum(k=1, n, sum(i=0, k, sum(j=0, k-i, sum(p=k-i-j, n, c(n, k, i, j, p) )))))/2} \\ _Andrew Howroyd_, Aug 13 2017

%o (Python)

%o from sympy import binomial, factorial

%o def c(n, k, i, j, p): return binomial(n, k)*binomial(n, i + p)*binomial(n, j + p)*binomial(k, i)*binomial(k - i, j)*factorial(k)*factorial(i + p)*factorial(j + p)*2**(k - i - j)*binomial(p + i + j - 1, k - 1)*(1 + n - k)

%o def a(n): return 3*sum([sum([sum([sum([c(n, k, i, j, p) for p in range(k - i - j, n + 1)]) for j in range(k - i + 1)]) for i in range(k + 1)]) for k in range(1, n + 1)])/2

%o print([a(n) for n in range(1, 13)]) # _Indranil Ghosh_, Aug 14 2017, after PARI

%Y Cf. A234616, A234633.

%K nonn

%O 1,1

%A _Eric W. Weisstein_, Jul 27 2017

%E Terms a(5) and beyond from _Andrew Howroyd_, Aug 13 2017

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 July 9 20:54 EDT 2024. Contains 374191 sequences. (Running on oeis4.)