OFFSET
1,3
COMMENTS
Degenerate isosceles triangles (i.e., three evenly-spaced points on a line) are also disallowed; otherwise this sequence would be the ones sequence.
For all n != m, if a(n) = a(m) then n - m is odd.
Conjecture: each integer appears exactly twice in this sequence.
LINKS
Peter Kagey, Table of n, a(n) for n = 1..500
EXAMPLE
Let p_n = (n, a(n)).
For n = 5, a(5) = 6 because
if a(5) = 1 then (p_1, p_3, p_5) forms an isosceles triangle,
if a(5) = 2 then (p_3, p_4, p_5) forms a degenerate isosceles triangle,
if a(5) = 3 then (p_1, p_3, p_5) forms a degenerate isosceles triangle,
if a(5) = 4 then (p_2, p_4, p_5) forms an isosceles triangle, and
if a(5) = 5 then (p_1, p_4, p_5) forms an isosceles triangle, therefore
a(5) = 6, the least value that does not form an isosceles triangle.
MATHEMATICA
d[p_, q_] := Total[(p-q)^2]; bad[a_, b_, c_] := Length[Union[{d[a, b], d[a, c], d[b, c]}]] < 3; good[w_] := Catch[ Do[ If[ bad[ w, L[[i]], L[[j]]], Throw@ False], {i, Length[L]}, {j, i-1}]; True]; L = {}; n = 0; While[n < 69, n++; k = 1; While[! good[{n, k}], k++]; AppendTo[L, {n, k}]]; Last /@ L (* Giovanni Resta, Apr 06 2017 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Peter Kagey, Apr 05 2017
STATUS
approved