|
| |
|
|
A128201
|
|
Union of squares and the odd numbers.
|
|
6
| |
|
|
1, 3, 4, 5, 7, 9, 11, 13, 15, 16, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 36, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 64, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 100, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
COMMENTS
| Range of A128200.
|
|
|
LINKS
| R. Zumkeller, Table of n, a(n) for n = 1..10000
|
|
|
FORMULA
| a(n) = f(n,1,1,2) where f(n,i,m,x) = if i=n then m else if m+1=x^2 then f(n,i+1,m+1,x) else if m+1>x^2 then f(n,i+1,m+1,x+2) else f(n,i+1,m+2,x).
Set R=2n-ROUND(SQRT(2n),0), then a(n)=ITE(ROUND(SQRT(R),0)^2=R,R,ITE((R mod 2)=1,R,R+1)) [From Gerald Hillier (adr.rabbicat(AT)gmail.com), Feb 03 2009]
|
|
|
CROSSREFS
| Partial sums given by A157130 [From Gerald Hillier (adr.rabbicat(AT)gmail.com), Feb 25 2009]
Sequence in context: A035242 A190941 A161153 * A096262 A193339 A049646
Adjacent sequences: A128198 A128199 A128200 * A128202 A128203 A128204
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Mar 04 2007
|
| |
|
|