OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..5
PROG
(Python)
from itertools import product
from math import factorial, prod, lcm
from fractions import Fraction
from sympy.utilities.iterables import partitions
def A051241(n): return int(sum(Fraction(1<<sum(prod(r)//lcm(*r)*prod(p[d] for d in r) for r in product(p.keys(), repeat=5)), prod(q**p[q]*factorial(p[q]) for q in p)) for p in partitions(n))) # Chai Wah Wu, Jul 02 2024
CROSSREFS
KEYWORD
nonn,bref
AUTHOR
STATUS
approved