login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A245289
Balanced squarefrees (of order one): squarefree numbers which are the average of the previous squarefree number and the following squarefree number.
3
2, 6, 14, 17, 19, 22, 26, 30, 34, 38, 42, 53, 55, 58, 66, 70, 78, 86, 89, 91, 94, 102, 106, 110, 114, 130, 138, 142, 158, 161, 163, 166, 170, 178, 182, 186, 194, 197, 199, 202, 210, 214, 218, 222, 230, 233, 235, 238, 249
OFFSET
1,1
COMMENTS
All even a(n) are numbers of the form 4k + 2 (as with all even squarefree numbers).
LINKS
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
Sequence in context: A212719 A145213 A050859 * A065196 A295326 A032483
KEYWORD
nonn
AUTHOR
STATUS
approved