OFFSET
1,2
COMMENTS
The sequence appears to be the interleaving of the four sequences A080856, A102083, A360416, A360417. This has been verified for values of k up to one million as of February 06 2023.
Above conjecture confirmed with more terms and linear recurrence. See supporting formula below. - Ray Chandler, Feb 10 2025
LINKS
Ray Chandler, Table of n, a(n) for n = 1..14142 (terms up to 10^8)
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 2, -2, 0, 0, -1, 1).
FORMULA
From Ray Chandler, Feb 10 2025: (Start)
a(n) = a(n-1) + 2*a(n-4) - 2*a(n-5) - a(n-8) + a(n-9) for n > 8.
EXAMPLE
The 1st congruence class in the list (with m=1 and r=1) is {1,2,3,...} which contains 1, so 1 is in the sequence. The 2nd congruence class (with m=2 and r=2) is {2,4,6,...} which contains 2, so 2 is in the sequence. The 3rd congruence class (with m=2 and r=1) is {1,3,5,...} which contains 3, so 3 is in the sequence. The 4th congruence class (with m=3 and r=3) is {3,6,9,...} which does not contain 4, so 4 is not in the sequence.
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
James Propp, Feb 06 2023
STATUS
approved