OFFSET
1,2
COMMENTS
In other words, k is a term iff the line drawn at step k coincides with a line drawn at an earlier step.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
MATHEMATICA
A395161list[upto_] := With[{lines = MapIndexed[{#[[2]] - #[[1]], #[[1]] - (#[[2]] - #[[1]])*#2[[1]]} &, Partition[Prime[Range[upto+1]], 2, 1]]}, Table[If[k == 1 || MemberQ[lines[[;; k-1]], lines[[k]]], k, Nothing], {k, upto}]];
A395161list[500]
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo Xausa, Apr 14 2026
STATUS
approved
