OFFSET
0,4
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, Scatterplot of the first 1000000 terms
Rémy Sigrist, C++ program
EXAMPLE
For n = 4:
- the first 4 terms of the sequence are: 0, 1, 1, 2,
- a(4) cannot equal 0 due to the progression b(-4) = 0, b(0) = 0, b(4) = 0,
- a(4) cannot equal 1 due to the progression b(-2) = 1, b(1) = 1, b(4) = 1,
- a(4) cannot equal 2 due to the progression b(0) = 0, b(2) = 1, b(4) = 2,
- a(4) cannot equal 3 due to the progression b(2) = 1, b(3) = 2, b(4) = 3,
- we chose a(4) = 4 as this does not induce arithmetic progressions.
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Rémy Sigrist, Jan 06 2024
STATUS
approved