login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A339584
A ternary sequence: a(n) = 1 if n is in A003156, 2 if n is in A003157, 3 if n is in A003158.
0
1, 3, 2, 1, 1, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 1, 1, 3, 2, 1, 1, 1, 3, 2, 1, 1, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 1, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 1, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 1, 1, 3, 2, 1, 1, 1, 3, 2, 1, 1, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 1, 1, 3, 2, 1, 1, 1, 3, 2, 1, 1, 1, 3, 2, 1
OFFSET
1,2
COMMENTS
This has the same relationship to A003156-A003158 as A092782 does to A003144-A003146.
FORMULA
a(n) = A092606(n) + 1. - John Keith, Dec 28 2020
MATHEMATICA
Nest[Flatten[# /. {1 -> {1, 3, 2}, 2 -> 1, 3 -> 1}] &, {1}, 8] (* John Keith, Dec 28 2020 after Robert G. Wilson v's program for A092782. *)
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 26 2020
STATUS
approved