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-2 of 2 results.

A186235 Total Wiener index of double-star trees with n nodes.

Original entry on oeis.org

10, 18, 57, 82, 169, 220, 374, 460, 700, 830, 1175, 1358, 1827, 2072, 2684, 3000, 3774, 4170, 5125, 5610, 6765, 7348, 8722, 9412, 11024, 11830, 13699, 14630, 16775, 17840, 20280, 21488, 24242, 25602, 28689, 30210, 33649, 35340, 39150, 41020
Offset: 4

Views

Author

Washington Bomfim, Feb 15 2011

Keywords

Comments

For the trees of a given order, it appears that the Wiener indexes are very close. For n=8, the indexes are 54, 57, and 58.
The second Bomfim link refers to formulas of the total Wiener index, and the average Wiener index of those trees.

Examples

			The first Bomfim link shows a way to find a(8).
		

Crossrefs

Programs

  • Magma
    [ IsEven(n) select (n-2)*(2*n-3)*(7*n-4)/24 else (n-3)*(n-1)*(7*n-8)/12: n in [4..43] ]; // Bruno Berselli, Feb 17 2011
  • Mathematica
    a[n_]:= a[n] = -a[n-7] + a[n-6] + 3a[n-5] - 3a[n-4] - 3a[n-3] + 3a[n-2] + a[n-1]; a[0]=-1; a[1]=0; a[2]=0; a[3]=0; a[4]=10; a[5]=18; a[6]=57; a /@ Range[4, 43] (* Jean-François Alcover, Jun 01 2011, after recurrence signature *)
    LinearRecurrence[{1,3,-3,-3,3,1,-1},{10,18,57,82,169,220,374},40] (* Harvey P. Dale, Mar 25 2013 *)
  • PARI
    for(n=4,43,if(n%2,print1((1/12)*(7*n^3+53*n)-3*n^2-2,", "), print1((1/24)*(14*n^3-57*n^2+70*n)-1,", ")))
    

Formula

G.f.: x^4*(10+8*x+9*x^2+x^3)/((1+x)^3*(1-x)^4). Also a(n)=(n*(28*n^2-129*n+176)+3*(5*n^2-12*n+8)*(-1)^n-72)/48. - Bruno Berselli, Feb 15 2011
For even n, a(n)=(14*n^3-57*n^2+70*n)/24-1, otherwise a(n)=(7*n^3+53*n)/12-3*n^2-2.
With d=floor((n-2)/2), a(n)=d((n-2)*(n-1)+n*(d+3)/2-d^2/3-3*d/2-13/6).

A186310 Total Wiener index of star-like trees with n edges.

Original entry on oeis.org

1, 4, 19, 54, 145, 350, 726, 1462, 2710, 4846, 8166, 13730, 21741, 34350, 52488, 79518, 117141, 172224, 246993, 353464, 496721, 694952, 958374, 1318174, 1789077, 2420888, 3243045, 4329098, 5728140, 7557906, 9893327, 12913820, 16746136
Offset: 1

Views

Author

Washington Bomfim, Feb 17 2011

Keywords

Comments

In the reference, p. 18, theorem 2.14, there is the following formula of the average Wiener index av(n) of a star-like tree with n edges:
av(n) = 2*n^2 - (6^(1/2)*n^(3/2))/(2*Pi)*(log(n) + 2*cEuler - log(Pi^2/6) + 24*zeta(3)/(Pi^2)),
so an approximate value of a(n) is given by av(n)*A058984(n). The following table was determined approximating zeta(3) by 1.2020569, and Euler's constant by 0.5772156649.
n av(n)*A058984(n) (I) a(n) (II) I/II
5 136.9 145 0.94414
13 21443.1 21741 0.98630
20 352132.8 353464 0.99623
28 4329081.3 4329098 0.999996
29 5729910.2 5728140 1.00031
30 7560843.8 7557906 1.00039
33 16760543.2 16746136 1.00086
50 810144542.2 808929430 1.00150
60 5614575632.9 5606027232 1.00152
80 167110984160.2 166870656888 1.00144
100 3203299185861.4 3199052703248 1.00133
120 45208751880788.8 45153537110230 1.00122
130 155331813239050.0 155149438632558 1.00117
140 507674790104504.3 507101038817616 1.00113
For n<=28 the approximation underestimates the actual value of the total Wiener index of star-like trees. For 29 <= n <= 140 it overestimates this total; however as n grows, the rate I/II converges to 1. - Washington Bomfim, Feb 17 2011

Examples

			The Bomfim link shows a way to find a(7).
		

Crossrefs

Showing 1-2 of 2 results.