login
A364447
Repeat [1,2,1,3].
3
1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1
OFFSET
1,2
COMMENTS
Continued fraction of sqrt(5) - 3/2 = 0.7360679... (without integer part); and (4*sqrt(5) + 6)/11 = 1.3585701... (with integer part).
Lexicographically earliest sequence in which n is banned for n terms after each appearance (see A364448 for n^2 and A364449 for n^3).
FORMULA
a(n) = A131743(n-1) + 1.
PROG
(Python)
def A364447(n): return (3, 1, 2, 1)[n&3] # Chai Wah Wu, Jul 29 2023
CROSSREFS
Cf. A131743 (repeat [0,1,0,2]).
Sequence in context: A094959 A162696 A370265 * A309978 A108103 A111376
KEYWORD
nonn,easy
AUTHOR
Rok Cestnik, Jul 25 2023
STATUS
approved