OFFSET
1,3
COMMENTS
This solves the Emissary puzzle.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16384
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
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 28 2011
STATUS
approved