login
A378729
Characteristic function of the primitive practical numbers as a subsequence of the practical numbers.
0
1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1
OFFSET
1,0
COMMENTS
a(n) = 1 indicates that the practical number A005153(n) is also primitive.
EXAMPLE
a(9) = 1 because A005153(9) = 20 and 20 is primitive practical.
MATHEMATICA
plst=Last/@ReadList["https://oeis.org/A005153/b005153.txt", {Number, Number}]; pplst=Last/@ReadList["https://oeis.org/A267124/b267124.txt", {Number, Number}]; getpplst[n_] := Module[{}, Select[pplst, # <= n &]]; Table[lst=getpplst[plst[[n]]]; If[MemberQ[lst, plst[[n]]], 1, 0], {n, 1, 200}]
CROSSREFS
Sequence in context: A379111 A262683 A359816 * A321083 A154269 A036987
KEYWORD
nonn
AUTHOR
Frank M Jackson, Dec 06 2024
STATUS
approved