Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A157790
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A157790 Least number of lattice points on two opposite sides from which every point of a square n x n lattice is visible. +0
3
1, 1, 2, 2, 3, 3, 4, 3, 4, 4, 4, 3, 4, 3, 4, 4, 4, 4, 6, 4, 5, 5, 4, 4, 7, 4, 5, 5, 6, 4 (list; graph; listen)
OFFSET

1,3

COMMENT

That is, the points are chosen from the 2n points on two opposite sides of the n x n lattice.

LINKS

Eric Weisstein, MathWorld: Visible Point

EXAMPLE

a(8) = 3 because all 64 points are visible from (1,1), (1,2), or (8,2).

a(9) = 4 because all 81 points are visible from (1,1), (1,2), (9,1), or (9,2).

MATHEMATICA

Join[{1}, Table[hidden=Table[{}, {n^2}]; edgePts={}; Do[pt1=(c-1)*n+d; If[c==1||c==n, AppendTo[edgePts, pt1]; lst={}; Do[pt2=(a-1)*n+b; If[GCD[c-a, d-b]>1, AppendTo[lst, pt2]], {a, n}, {b, n}]; hidden[[pt1]]=lst], {c, n}, {d, n}]; edgePts=Sort[edgePts]; done=False; k=0; done=False; k=0; While[ !done, k++; len=Binomial[2n, k]; i=0; While[i<len, i++; s=Subsets[edgePts, {k}, {i}][[1]]; If[Intersection@@hidden[[s]]=={}, done=True; Break[]]]]; k, {n, 2, 11}]]

CROSSREFS

A157639, A157720, A157791, A157792

Sequence in context: A057935 A124831 A105096 this_sequence A070241 A066412 A117119

Adjacent sequences: A157787 A157788 A157789 this_sequence A157791 A157792 A157793

KEYWORD

hard,more,nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Mar 06 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research