|
|
A327640
|
|
Number of partitions of n into divisors d of n such that n/d is odd.
|
|
1
|
|
|
1, 1, 1, 2, 1, 2, 2, 2, 1, 5, 2, 2, 2, 2, 2, 14, 1, 2, 5, 2, 2, 18, 2, 2, 2, 7, 2, 23, 2, 2, 14, 2, 1, 26, 2, 26, 5, 2, 2, 30, 2, 2, 18, 2, 2, 286, 2, 2, 2, 9, 7, 38, 2, 2, 23, 38, 2, 42, 2, 2, 14, 2, 2, 493, 1, 44, 26, 2, 2, 50, 26, 2, 5, 2, 2, 698, 2, 50, 30, 2, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
|
|
FORMULA
|
a(n) = [x^n] Product_{d|n, n/d odd} 1 / (1 - x^d).
a(2^k) = 1.
|
|
MAPLE
|
with(numtheory):
a:= proc(n) option remember; local b, l; l, b:= sort(
[select(x-> is((n/x):: odd), divisors(n))[]]),
proc(m, i) option remember; `if`(m=0, 1, `if`(i<1, 0,
b(m, i-1)+`if`(l[i]>m, 0, b(m-l[i], i))))
end; b(n, nops(l))
end:
|
|
MATHEMATICA
|
a[n_] := SeriesCoefficient[Product[1/(1 - Boole[OddQ[n/d]] x^d), {d, Divisors[n]}], {x, 0, n}]; Table[a[n], {n, 0, 80}]
|
|
PROG
|
(Magma) [1] cat [#RestrictedPartitions(n, {d:d in Divisors(n)|IsOdd(n div d)}):n in [1..80]]; // Marius A. Burtea, Sep 20 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|