Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A076644
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A076644 a(1)=1; for n>1, a(n) = a(n-floor(sqrt(n))) + n. +0
3
1, 3, 6, 7, 11, 13, 18, 21, 22, 28, 32, 34, 41, 46, 49, 50, 58, 64, 68, 70, 79, 86, 91, 94, 95, 105, 113, 119, 123, 125, 136, 145, 152, 157, 160, 161, 173, 183, 191, 197, 201, 203, 216, 227, 236, 243, 248, 251, 252, 266, 278, 288, 296, 302, 306, 308, 323, 336 (list; graph; listen)
OFFSET

1,2

COMMENT

a(n) = floor(2/3*n*(sqrt(n)+1)) for n=1,2,4,6,17,24,26,29,43,83,88,193,207,243,357,534,806,1082,1197,1377... Sign of a(n) - floor(2/3*n*(sqrt(n)+1)) changes often.

Cumulative sums of A122196. - Frank Adams-Watters (FrankTAW(AT)Netscape.net), Aug 25 2006

FORMULA

Write n=r^2+s with -r < s <= r; then a(n) = r(r+1)(4r-1)/6 + x, where x = -s^2 if s <= 0, x = s(2r+1-s) if s >= 0. - Dean Hickerson (dean.hickerson(AT)yahoo.com), Nov 11 2002

a(n) is asymptotic to 2/3*n^(3/2).

MATHEMATICA

a[n_] := Module[{r, s}, r=Floor[1/2+Sqrt[n]]; s=n-r^2; (r(r+1)(4r-1))/6+If[s<=0, -s^2, s(2r+1-s)]]

PROGRAM

(PARI) a(n)=if(n<2, n>0, n+a(n-sqrtint(n)))

CROSSREFS

Cf. A122196.

Sequence in context: A120511 A022550 A153033 this_sequence A087642 A084349 A126003

Adjacent sequences: A076641 A076642 A076643 this_sequence A076645 A076646 A076647

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Oct 23 2002

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 20 16:54 EST 2009. Contains 171081 sequences.


AT&T Labs Research