Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A037458
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A037458 a(1)=1; for n > 1, a(n)=n-a(n-sqrtint(n)) where sqrtint(n) denotes floor(sqrt(n)). +0
2
1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 6, 7, 8, 9, 10, 10, 10, 10, 10, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 16, 17, 18, 19, 20, 21, 21, 21, 21, 21, 21, 21, 22, 23, 24, 25, 26, 27, 28, 28, 28, 28, 28, 28, 28, 28, 29, 30, 31, 32, 33, 34, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 38 (list; graph; listen)
OFFSET

1,3

FORMULA

a(n)=(1/2)*(n+A053615(n))

PROGRAM

(PARI) a(n)=if(n<2, 1, n-a(n-sqrtint(n)))

CROSSREFS

Sequence in context: A137512 A157943 A051134 this_sequence A064474 A072688 A120504

Adjacent sequences: A037455 A037456 A037457 this_sequence A037459 A037460 A037461

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Dec 22 2002

EXTENSIONS

Corrected by Franklin T. Adams-Watters, Oct 25 2006

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