|
Search: id:A111007
|
|
|
| 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
|
|
|
Search completed in 0.002 seconds
|