Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A160692
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A160692 Iteration of (k terms=k, followed by 2^k-k terms=0), beginning with k=0. +0
4
0, 1, 0, 2, 2, 0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; listen)
OFFSET

0,4

COMMENT

For n with 2^k - 1 <= n < 2^k + k-1: a(n) = k;

for n with 2^k + k-1 <= n < 2^(k+1) - 1: a(n) = 0.

FORMULA

a(n) = f(n,0) with f(n,k) = if n<2^k then (if n<k then k else 0) else f(n-2^k,k+1).

CROSSREFS

A000225, A083706, A052944, A000918.

Sequence in context: A145264 A109042 A128540 this_sequence A051775 A108036 A063711

Adjacent sequences: A160689 A160690 A160691 this_sequence A160693 A160694 A160695

KEYWORD

nonn,tabf

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 24 2009

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 November 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research