OFFSET
0,1
COMMENTS
This sequence, together with A350666 and A350667, gives a 3-set partition of the nonnegative integers.
This sequence {a(n)}_{n>=0} gives the indices of the row sequences of array A = A347834, that are modulo 6 periodic with period length 3, namely
{A347834(a(n), m) mod 6}_{m >= 0} = {repeat(3, 1, 5)}.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,1,-1).
FORMULA
A159955(a(n)) = 2.
Trisection: a(3*k) = 2 + 9*k, a(3*k + 1) = 4 + 9*k, and a(3*k + 3) = 6 + 9*k, for k >= 0.
G.f.: (2 + 2*x + 2*x^2 + 3*x^3)/((1 - x)*(1 - x^3)).
a(n) = 1 + 3*n + cos(2*n*Pi/3) + sin(2*n*Pi/3)/sqrt(3). - Stefano Spezia, Jan 30 2022
EXAMPLE
Rows of array {A347834(a(n), m)}_{m >= 0}, with modulo 6 congruence:
n = 0: row 2: {3, 13, 53, 213, 853, 3413, 13653, ...} mod 6 = {repeat(3, 1, 5)},
n = 1: row 4: {9, 37, 149, 597, 2389, 9557, ...} (mod 6) = {repeat(3, 1, 5)},
...
MATHEMATICA
Select[Range[0, 150], MemberQ[{2, 4, 6}, Mod[#, 9]] &] (* Amiram Eldar, Jan 29 2022 *)
LinearRecurrence[{1, 0, 1, -1}, {2, 4, 6, 11}, 80] (* Harvey P. Dale, Jul 12 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Jan 29 2022
STATUS
approved