login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A157791 Least number of lattice points on two adjacent sides from which every point of a square n x n lattice is visible. 2
1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5 (list; graph; refs; listen; history; internal format)
OFFSET

1,3

COMMENTS

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

LINKS

Eric Weisstein, MathWorld: Visible Point

EXAMPLE

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

a(25)= 4 because all 625 points are visible from (1,2), (4,1), (6,1), or (23,1).

MATHEMATICA

Join[{1}, Table[hidden=Table[{}, {n^2}]; edgePts={}; Do[pt1=(c-1)*n+d; If[c==1||d==1, 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-1, 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, A157790, A157792

Sequence in context: A084556 A084506 A071578 * A156874 A078767 A093125

Adjacent sequences:  A157788 A157789 A157790 * A157792 A157793 A157794

KEYWORD

hard,more,nonn

AUTHOR

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 18:27 EST 2012. Contains 205535 sequences.