OFFSET
0,3
COMMENTS
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) == 4 are obtained for k = 2, 4, 6, 12 ...
So a(0) = 0 (k = 2^0 does not occur), a(1) = 1 (one value of k satisfying k <= 2^1), a(2) = 2 (two value of k satisfying k <= 2^2) and a(3) = 3 (three value of k satisfying k <= 2^3).
CROSSREFS
KEYWORD
nonn,more
AUTHOR
A.H.M. Smeets, Aug 03 2021
STATUS
approved