OFFSET
1,4
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Paolo Xausa, Illustration of a(10) = 25
Paolo Xausa, Illustration of a(50) = 560
Paolo Xausa, Illustration of a(100) = 2327
MATHEMATICA
A394915list[nmax_] := Module[{lines = MapIndexed[{#2[[1]], #} &, Partition[Prime[Range[nmax+1]], 2, 1]], pts = {}, int}, int[{x1_, {y1_, y2_}}, {x3_, {y3_, y4_}}] := If[# == 0, Nothing, With[{a = x3*y4 - y3*(x3 + 1), b = x1*y2 - y1*(x1 + 1)}, {(a - b)/#, (b*(y3 - y4) - a*(y1 - y2))/#}]] & [y1 - y2 - y3 + y4]; Table[Length[pts = DeleteDuplicates[Join[pts, Map[int[#, lines[[n]]] &, lines[[;; n-1]]]]]], {n, nmax}]];
A394915list[100]
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo Xausa, Apr 09 2026
STATUS
approved
