login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A378448
Characteristic function of A064771: a(n) = 1 if there is exactly one subset of the proper divisors of n that sum to n, otherwise 0.
5
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0
OFFSET
1
FORMULA
a(n) = [A065205(n) = 1], where [ ] is the Iverson bracket.
PROG
(PARI)
A033630(n) = if(!n, 1, my(p=1); fordiv(n, d, p *= (1 + 'x^d)); polcoeff(p, n));
A378448(n) = (2==A033630(n));
CROSSREFS
Characteristic function of A064771.
Sequence in context: A318880 A177063 A378529 * A341619 A378537 A379475
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 28 2024
STATUS
approved