Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A111007
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A111007 A triangle of closest integer to the circle with diameter n and center at (n/2, 1). +0
1
1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 3, 3, 3, 1, 1, 3, 3, 3, 3, 1, 1, 3, 4, 4, 4, 3, 1, 1, 3, 4, 4, 4, 4, 3, 1, 1, 4, 4, 5, 5, 5, 4, 4, 1, 1, 4, 5, 5, 5, 5, 5, 5, 4, 1 (list; table; graph; listen)
OFFSET

1,4

FORMULA

The positive y value of a circle is: k + sqrt(-x^2 + 2xh - h^2 + r^2) where k is the y coordinate of the center and h is the x coordinate of the center.

EXAMPLE

The fifth row is 1,3,3,3,3,1 because after rounding these values fit the radius 2.5 circle most closely.

MAPLE

solve((x-h)^2 + (y-k)^2-r^2, y); for d from 9 to 9 do for x from 0 to d do h:= d/2; r:= d/2; k:= 1; print(evalf(round(k+sqrt(-x^2+2*x*h - h^2 + r^2)))); end do; end do;

CROSSREFS

Sequence in context: A134542 A106254 A117147 this_sequence A103691 A103441 A081206

Adjacent sequences: A111004 A111005 A111006 this_sequence A111008 A111009 A111010

KEYWORD

nonn,uned,tabl,obsc

AUTHOR

Ben Thurston (benthurston27(AT)yahoo.com), Nov 19 2006

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 20 00:58 EST 2009. Contains 171054 sequences.


AT&T Labs Research