[go: up one dir, main page]

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

A201219
a(1) = 0; for n>1, a(n) = 1 if n is a power of 2, otherwise a(n) = 2.
2
0, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
OFFSET
1,3
COMMENTS
This solves the Emissary puzzle.
LINKS
Puzzles Column, Emissary, Fall 2011, page 9, puzzle 6.
FORMULA
a(1) = 0, for n > 1, a(n) = 2 - A209229(n). - Antti Karttunen, Nov 19 2017
MATHEMATICA
Join[{0}, Table[If[IntegerQ[Log2[n]], 1, 2], {n, 2, 200}]] (* Harvey P. Dale, Dec 03 2021 *)
CROSSREFS
Sequence in context: A229904 A160242 A043529 * A254315 A080942 A099812
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 28 2011
STATUS
approved