Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A064506
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A064506 a(n) = Max { k | k*(k+1)/2 <= n*(n+1)/2 - k*(k+1)/2 }. +0
1
0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11, 11, 12, 13, 14, 14, 15, 16, 16, 17, 18, 18, 19, 20, 21, 21, 22, 23, 23, 24, 25, 26, 26, 27, 28, 28, 29, 30, 30, 31, 32, 33, 33, 34, 35, 35, 36, 37, 38, 38, 39, 40, 40, 41, 42, 42, 43, 44, 45, 45, 46, 47, 47, 48, 49, 50, 50, 51, 52 (list; graph; listen)
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.

PROGRAM

(PARI) { for (n=1, 1000, a=(sqrt(2*n*(n + 1) + 1) - 1) \ 2; write("b064506.txt", n, " ", a) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Sep 17 2009]

CROSSREFS

Sequence in context: A075357 A094331 A135672 this_sequence A082774 A074239 A064488

Adjacent sequences: A064503 A064504 A064505 this_sequence A064507 A064508 A064509

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 06 2001

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 16 17:18 EST 2009. Contains 170825 sequences.


AT&T Labs Research