OFFSET
0,5
COMMENTS
FORMULA
EXAMPLE
The sequence A001223(n) mod 6 is given by: 1, 2, 2, 4, 2, 4, 2, 4, 0, 2, 0, 4, 2, 4, 0, 0, 2, 0, 4, 2, 0, 4, 0, 2, ..., denoted here as b(0), b(1), b(2), ..., i.e. b(n) = A001223(n+1) (mod 6) for n >= 0.
The term b(0) is excluded by definition. The conditions b(k) = 2 and b(k+1) == 0 are obtained for k = 9, 16, 19, ...
So a(n) = 0 for n <= 3 (the first value of k is 9, i.e. larger than 2^3), and a(4) = 2 (two values of k satisfying k <= 2^4).
CROSSREFS
KEYWORD
nonn,more
AUTHOR
A.H.M. Smeets, Aug 03 2021
STATUS
approved