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”).

A210455
Characteristic function of pseudoperfect (or semiperfect) numbers.
7
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0
OFFSET
1
COMMENTS
a(A005835(n)) = 1 and a(A136447(n)) = 0.
LINKS
Eric Weisstein's World of Mathematics, Semiperfect Number
PROG
(Haskell)
a210455 n = fromEnum $ p (a027751_row n) n where
p ks m = m == 0 || not (null ks) && head ks <= m &&
(p (tail ks) (m - head ks) || p (tail ks) m)
CROSSREFS
Cf. A027751.
Sequence in context: A093958 A044936 A133944 * A294936 A378539 A296210
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 21 2013
STATUS
approved