OFFSET
1,1
COMMENTS
All even a(n) are numbers of the form 4k + 2 (as with all even squarefree numbers).
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
FORMULA
With b(m) = A005117(m), m >= 2, this is the sequence of the increasingly ordered members of the set {b(m): b(m) = (b(m-1)+ b(m+1))/2}. - Wolfdieter Lang, Jul 25 2014
EXAMPLE
2 is in this sequence because it is squarefree and the average of the previous squarefree number 1 and the following squarefree number 3.
MATHEMATICA
With[{sqfr=Select[Range[500], SquareFreeQ]}, Transpose[Select[ Partition[ sqfr, 3, 1], (#[[1]]+#[[3]])/2==#[[2]]&]][[2]]] (* Harvey P. Dale, Dec 15 2014 *)
PROG
(PARI)
v = select(n->issquarefree(n), vector(300, n, n));
for(k=2, #v-1, if(2*v[k] == v[k-1]+v[k+1], print1(v[k], ", "))) \\ Colin Barker, Jul 17 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 16 2014
STATUS
approved