%I A128201
%S A128201 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,
%T A128201 45,47,49,51,53,55,57,59,61,63,64,65,67,69,71,73,75,77,79,81,83,85,87,
%U A128201 89,91,93,95,97,99,100,101,103,105,107,109,111,113,115,117,119,121,123
%N A128201 Union of squares and the odd numbers.
%C A128201 Range of A128200.
%H A128201 R. Zumkeller, <a href="b128201.txt">Table of n, a(n) for n = 1..10000</
a>
%F A128201 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).
%F A128201 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]
%Y A128201 Partial sums given by A157130 [From Gerald Hillier (adr.rabbicat(AT)gmail.com),
Feb 25 2009]
%Y A128201 Sequence in context: A047501 A035242 A161153 this_sequence A096262 A049646
A033556
%Y A128201 Adjacent sequences: A128198 A128199 A128200 this_sequence A128202 A128203
A128204
%K A128201 nonn
%O A128201 1,2
%A A128201 Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Mar 04 2007
|