OFFSET
1,2
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
MAPLE
A161339 := proc(n) option remember: local s: if(n=1)then return 1: fi: s:=sqrt(n): if(frac(s)=0)then return procname(n-1)+2*s-1: else return procname(n-1)+2*floor(s): fi: end: seq(A161339(n), n=1..60); # Nathaniel Johnston, May 06 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Jun 19 2009
STATUS
approved