OFFSET
1,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = floor((sqrt(2*n*(n+1) + 1) - 1) / 2)
EXAMPLE
1+2+3+4+5 <= 6+7+8 and as 1+2+3+4+5+6 > 7+8 we have a(8) = 5.
PROG
(PARI) { for (n=1, 1000, a=(sqrt(2*n*(n + 1) + 1) - 1) \ 2; write("b064506.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 17 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 06 2001
STATUS
approved