STATUS
reviewed
approved
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”).
reviewed
approved
proposed
reviewed
editing
proposed
(PARI) a(n) = fromdigits(digits(n, 3)\2, 2); \\ Ruud H.G. van Tol, May 08 2024
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
d = digits(n, 3)[1:]
return int("".join(['1' if i == 2 else '0' for i in d]), 2)
print map([a, (n) for n in range(101)]) # Indranil Ghosh, Jul 20 2017
approved
editing
proposed
approved
editing
proposed