OFFSET
1,4
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..141
Steven C. Cater and Robert W. Robinson, Exponents of 2 in the numbers of unlabeled graphs and tournaments, Congressus Numerantium, 82 (1991), pp. 139-155.
Steven C. Cater and Robert W. Robinson, Exponents of 2 in the numbers of unlabeled graphs and tournaments, Preprint. (Annotated scanned copy)
FORMULA
MATHEMATICA
IntegerExponent[#, 2]& /@ A000568 // Rest (* Jean-François Alcover, Jan 06 2020 *)
PROG
(Python)
from itertools import product
from math import prod, factorial, gcd
from fractions import Fraction
from sympy.utilities.iterables import partitions
def A007150(n): return (~(m:=int(sum(Fraction(1<<(sum(p[r]*p[s]*gcd(r, s) for r, s in product(p.keys(), repeat=2))-sum(p.values())>>1), prod(q**p[q]*factorial(p[q]) for q in p)) for p in partitions(n) if all(q&1 for q in p)))) & m-1).bit_length() # Chai Wah Wu, Jul 01 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from A000568 by Jean-François Alcover, Jan 06 2020
STATUS
approved