A364447 Repeat [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, 2, 1, 3, 1
Offset: 1
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,1).
Programs
-
Mathematica
PadRight[{}, 100, {1, 2, 1, 3}] (* Paolo Xausa, Jan 23 2025 *)
-
Python
def A364447(n): return (3,1,2,1)[n&3] # Chai Wah Wu, Jul 29 2023
Formula
a(n) = A131743(n-1) + 1.
Comments