OFFSET
1
COMMENTS
This sequence has connections with A038219; in both sequences we try to avoid certain patterns when computing successive terms.
LINKS
EXAMPLE
For n = 1:
- a(1) = 0 by definition.
For n = 2:
- the value 0 would imply an arithmetic progression of length 2,
- the value 1 would imply an arithmetic progression of length 1,
- so a(2) = 1.
For n = 3:
- the value 0 would imply an arithmetic progression of length 2 and common difference 2,
- the value 1 would imply an arithmetic progression of length 2 and common difference 1,
- so a(3) = 0.
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 23 2023
STATUS
approved