OFFSET
4,1
COMMENTS
Here we count both the sequence 1,2,3 (r=1) as a progression in 1,2,3,0,4,5, (note d=1) and in 1,0,2,4,3,5 (here, d=2).
EXAMPLE
For n=4 note a(4) is the same as the value in A165963 since there are no other distances that can be used (i.e. only d=1).
CROSSREFS
KEYWORD
nonn
AUTHOR
Isaac Lambert, Apr 20 2010
STATUS
approved