OFFSET
1,2
COMMENTS
a(1)=1, a(2)=28; a(n) is least k such that no three terms of a(1), a(2), ..., a(n-1), k form an arithmetic progression.
FORMULA
a(n) = (Sum_{k=1..n-1} (3^A007814(k) + 1)/2) + f(n), with f(n) a 16-periodic function with values {1, 27, 26, 27, 23, 27, 26, 27, 14, 28, 28, 28, 28, 28, 28, 28, ...}, n >= 1 (conjectured and checked up to n=1000).
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Stephan, Apr 09 2004
STATUS
approved