Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A141255
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A141255 Total number of line segments between points visible to each other in a square n X n lattice. +0
2
0, 6, 28, 86, 200, 418, 748, 1282, 2040, 3106, 4492, 6394, 8744, 11822, 15556, 20074, 25456, 32086, 39724, 48934, 59456, 71554, 85252, 101250, 119040, 139350, 161932, 187254, 215136, 246690, 280916, 319346, 361328, 407302, 457180, 511714, 570232 (list; graph; listen)
OFFSET

1,2

COMMENT

A line segment joins points (a,b) and (c,d) if the points are distinct and gcd(c-a,d-b)=1.

FORMULA

a(n) = A114043(n) - 1.

EXAMPLE

The 2 x 2 square lattice has a total of 6 line segments: 2 vertical, 2 horizonal and 2 diagonal.

MATHEMATICA

Table[cnt=0; Do[If[GCD[c-a, d-b]<2, cnt++ ], {a, n}, {b, n}, {c, n}, {d, n}]; (cnt-n^2)/2, {n, 20}]

CROSSREFS

Cf. A141224.

Sequence in context: A119174 A144945 A055711 this_sequence A091321 A125310 A138874

Adjacent sequences: A141252 A141253 A141254 this_sequence A141256 A141257 A141258

KEYWORD

nonn

AUTHOR

T. D. Noe (noe(AT)sspectra.com), Jun 17 2008

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 December 10 00:48 EST 2009. Contains 170565 sequences.


AT&T Labs Research