[go: up one dir, main page]

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

Showing entries 1-10 | older changes
Number of connected simple graphs on n unlabeled vertices without universal vertices.
(history; published version)
#21 by OEIS Server at Fri Jul 05 09:34:34 EDT 2024
LINKS

Chai Wah Wu, <a href="/A367142/b367142_1.txt">Table of n, a(n) for n = 0..87</a>

#20 by Alois P. Heinz at Fri Jul 05 09:34:34 EDT 2024
STATUS

proposed

approved

Discussion
Fri Jul 05
09:34
OEIS Server: Installed first b-file as b367142.txt.
#19 by Chai Wah Wu at Fri Jul 05 09:11:24 EDT 2024
STATUS

editing

proposed

#18 by Chai Wah Wu at Fri Jul 05 09:11:17 EDT 2024
LINKS

Chai Wah Wu, <a href="/A367142/b367142_1.txt">Table of n, a(n) for n = 0..87</a>

STATUS

approved

editing

#17 by Michel Marcus at Thu Jul 04 02:24:12 EDT 2024
STATUS

reviewed

approved

#16 by Joerg Arndt at Thu Jul 04 01:45:45 EDT 2024
STATUS

proposed

reviewed

#15 by Chai Wah Wu at Wed Jul 03 22:26:37 EDT 2024
STATUS

editing

proposed

#14 by Chai Wah Wu at Wed Jul 03 22:26:28 EDT 2024
PROG

return sum(mobius(n//d)*c(d) for d in divisors(n, generator=True))//n-b(n-1) # Chai Wah Wu, Jul 03 2024

#13 by Chai Wah Wu at Wed Jul 03 22:26:17 EDT 2024
PROG

(Python)

from functools import lru_cache

from itertools import combinations

from fractions import Fraction

from math import prod, gcd, factorial

from sympy import mobius, divisors

from sympy.utilities.iterables import partitions

def A367142(n):

if n == 0: return 1

@lru_cache(maxsize=None)

def b(n): return int(sum(Fraction(1<<sum(p[r]*p[s]*gcd(r, s) for r, s in combinations(p.keys(), 2))+sum((q>>1)*r+(q*r*(r-1)>>1) for q, r in p.items()), prod(q**r*factorial(r) for q, r in p.items())) for p in partitions(n)))

@lru_cache(maxsize=None)

def c(n): return n*b(n)-sum(c(k)*b(n-k) for k in range(1, n))

return sum(mobius(n//d)*c(d) for d in divisors(n, generator=True))//n-b(n-1) # Chai Wah Wu, Jul 03 2024

STATUS

approved

editing

#12 by Michael De Vlieger at Mon Nov 06 19:48:57 EST 2023
STATUS

proposed

approved