OFFSET
1,3
COMMENTS
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..1000
J. Cassaigne and P. Zimmermann, Numerical Evaluation of the Strongly Triple-Free Constant.
Julien Cassaigne and Paul Zimmermann, Numerical Evaluation of the Strongly Triple-Free Constant (pdf file, 1996).
Steven R. Finch, Triple-Free Sets of Integers [From Steven Finch, Apr 20 2019]
EXAMPLE
For n=7, the grid graph has rows {1,3,9}, {2,6}, {4}, {8} and the maximal set of nonadjacent vertices is {1,4,6,9}, hence a(7)=4.
MATHEMATICA
f[k_, n_]:=1+Floor[FullSimplify[Log[n/3^k]/Log[2]]]; g[n_]:=Floor[FullSimplify[Log[n]/Log[3]]]; peven[n_]:=Sum[Quotient[f[k, n]+Mod[k+1, 2], 2], {k, 0, g[n]}]; podd[n_]:=Sum[Quotient[f[k, n]+Mod[k, 2], 2], {k, 0, g[n]}]; p[n_]:=Max[peven[n], podd[n]]; v[1]=1; j=1; k=1; n=70; For[k=2, k<=n, k++, If[2*v[k-j]<3^j, v[k]=2*v[k-j], {v[k]=3^j, j++}]]; Table[p[v[n]], {n, 1, 70}] (* Steven Finch, Feb 27 2009; corrected by Giovanni Resta, Jul 29 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Steven Finch, Feb 26 2009
STATUS
approved