OFFSET
1,3
COMMENTS
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
EXAMPLE
After terms 0, 1, 3, 4 have been added, the terms 5,...,9 are forbidden by subsequences (3,4,5), (0,3,6), (1,4,7), (0,4,8) and (1,3,9) so the next term is 10.
MATHEMATICA
seq = {0, 1}; bad[n_] := Catch[ Do[If[MemberQ[seq, (n + e)/2], Throw@True], {e, seq}]; Do[If[MemberQ[seq, Sqrt[n*e]], Throw@True], {e, Rest@ seq}]; False]; While[Length[seq] < 100, x = Last[seq]+1; While[bad[x], x++]; AppendTo[seq, x]]; seq
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Giovanni Resta, Jul 29 2013
STATUS
approved