OFFSET
1,2
LINKS
MATHEMATICA
A355478[nmax_]:=Module[{walk={{0, 0}}, angle=0, cells}, Join[{0}, Table[AppendTo[walk, AngleVector[Last[walk], angle+=If[PrimeQ[n], -1, 1]Pi/3]]; cells=FindCycle[Graph[MapApply[UndirectedEdge, Partition[walk, 2, 1]]], {6}, All]; CountDistinct[Map[Sort, Map[First, cells, {2}]]], {n, nmax}]]];
Flatten[Join[{0}, Position[Differences[A355478[500]], _?Positive]]]
CROSSREFS
KEYWORD
nonn,walk
AUTHOR
Paolo Xausa, Jan 04 2023, following a suggestion from Peter Munn
STATUS
approved
