[go: up one dir, main page]

login
Revision History for A004107 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Number of self-dual nets with 2n nodes.
(history; published version)
#33 by Alois P. Heinz at Tue Jul 09 16:31:58 EDT 2024
STATUS

reviewed

approved

#32 by Stefano Spezia at Tue Jul 09 15:51:27 EDT 2024
STATUS

proposed

reviewed

#31 by Michel Marcus at Tue Jul 09 13:03:31 EDT 2024
STATUS

editing

proposed

#30 by Michel Marcus at Tue Jul 09 13:03:23 EDT 2024
LINKS

Frank Harary, Edgar M. Palmer, Robert W. Robinson, and Allen J. Schwenk, <a href="http://dx.doi.org/10.1002/jgt.3190010405">Enumeration of graphs with signed points and lines</a>, J. Graph Theory 1 (1977), no. 4, 295-308.

STATUS

proposed

editing

#29 by Chai Wah Wu at Tue Jul 09 12:45:41 EDT 2024
STATUS

editing

proposed

#28 by Chai Wah Wu at Tue Jul 09 12:45:19 EDT 2024
PROG

(Python)

from itertools import combinations

from math import prod, gcd, factorial

from fractions import Fraction

from sympy.utilities.iterables import partitions

def A004107(n): return int(sum(Fraction(3**((sum(p[r]*p[s]*gcd(r, s) for r, s in combinations(p.keys(), 2))<<1)+sum(((q&-2)+q*(r-1))*r for q, r in p.items())), prod(q**r*factorial(r) for q, r in p.items())) for p in partitions(n))) # Chai Wah Wu, Jul 09 2024

STATUS

approved

editing

#27 by Susanna Cuyler at Sat Aug 17 08:02:02 EDT 2019
STATUS

proposed

approved

#26 by Jean-François Alcover at Sat Aug 17 08:01:12 EDT 2019
STATUS

editing

proposed

#25 by Jean-François Alcover at Sat Aug 17 08:01:06 EDT 2019
MATHEMATICA

permcount[v_] := Module[{m=1, s=0, k=0, t}, For[i=1, i <= Length[v], i++, t = v[[i]]; k = If[i>1 && t == v[[i-1]], k+1, 1]; m *= t*k; s += t]; s!/m];

edges[v_] := 2 Sum[Sum[GCD[v[[i]], v[[j]]], {j, 1, i - 1}], {i, 2, Length[v]}] + Sum[2 Quotient[v[[i]], 2], {i, 1, Length[v]}];

a[n_] := Module[{s = 0}, Do[s += permcount[p]*3^edges[p], {p, IntegerPartitions[n]}]; s/n!];

Array[a, 12, 0] (* Jean-François Alcover, Aug 17 2019, after Andrew Howroyd *)

STATUS

approved

editing

#24 by OEIS Server at Tue Sep 25 17:57:03 EDT 2018
LINKS

Andrew Howroyd, <a href="/A004107/b004107_1.txt">Table of n, a(n) for n = 0..40</a> (terms 1..13 from R. W. Robinson)