OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..6610
M. R. Nester, Mathematical investigations of some plant interaction designs, PhD Thesis, (1999), University of Queensland, Brisbane, Australia. [See A056391 for pdf file of Chap. 2]
FORMULA
a(n) = Sum_{d|n} mu(d)*A016116(1 + n/d).
a(n) = 2 * A056476(n). - Alois P. Heinz, Feb 18 2025
MAPLE
f:= proc(n) local d; add(numtheory:-mobius(d)*2^floor((1+n/d)/2), d = numtheory:-divisors(n)) end proc:
map(f, [$1..50]); # Robert Israel, Feb 18 2025
PROG
(PARI) a(n) = sumdiv(n, d, moebius(d)*2^((1 + n/d)\2)); \\ Michel Marcus, Apr 24 2020
(Python)
from sympy import mobius, divisors
def A056458(n): return sum(mobius(n//d)<<(1+d>>1) for d in divisors(n, generator=True)) # Chai Wah Wu, Feb 18 2024
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Apr 24 2020
STATUS
approved