OFFSET
3,1
COMMENTS
Sequence A188896 gives the n that have no solution.
FORMULA
If n is a square, then a(n)=2.
MATHEMATICA
kMax = 25000; NgonIndex[n_, v_] := (-4 + n + Sqrt[16 - 8*n + n^2 - 16*v + 8*n*v])/(n - 2)/2; Table[k = 2; While[sqr = k^2; i = NgonIndex[n, sqr]; k < kMax && ! IntegerQ[i], k++]; If[k == kMax, k = sqr = i = 0]; i, {n, 3, 64}]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Apr 13 2011
STATUS
approved