A381598 Index of first term of three consecutive n's in A381597.
1, 9, 34, 147, 111, 359, 437, 389, 594, 826, 1102, 83317, 1789, 5142, 2931, 12671
Offset: 1
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
N:= 1000: # to get all terms of A262942 before the first > N V:= Vector(N): W:= Vector(N): S:= Vector(N): firstav:= 1; for n from 1 to N do forbid:= {seq(op([2*V[k]-V[2*k-n], 2*V[2*k-n]-V[k], (V[k]+V[2*k-n])/2]), k=ceil((n+1)/2)..n-1)}; for v from firstav to N do if S[v] <> 0 and v = firstav then firstav:= v+1 fi; if S[v] = 0 and not member(v, forbid) then V[n]:= v; W[v]:= n; S[v]:= 1; break fi od; if v > N then break fi; od: seq(W[i],i=1..firstav-1); # Robert Israel, Nov 23 2015
a(7) = 4, because 2 would form an arithmetic progression with a(1) = 2 and a(4) = 2 and 3 would form an arithmetic progression with a(5) = 3 and a(6) = 3. Therefore, 4 is the second smallest number which satisfies the condition (1 being the smallest).
See Links section.
a(12) = 66. A value of 15, with coordinate (12,15), for this term would create a point for which all line gradients are distinct, see A286091, but it creates a line that passes through the origin with a(4), a point with coordinate (4,5). However the terms a(3), at coordinate (3,2) and a(6), at coordinate (6,4), have already created a line that passes through the origin, thus a(12) cannot be 15. The coordinate (12,66) is the first point the leads to all lines and y-intercepts being distinct.
Comments