Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A092754
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A092754 a(1)=1, a(2n)=2a(n)+1, a(2n+1)=2a(n)+2. +0
1
1, 3, 4, 7, 8, 9, 10, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 127, 128, 129, 130, 131, 132 (list; graph; listen)
OFFSET

1,2

COMMENT

More generally the sequence b(1)=1, b(2n)=2b(n)+x, b(2n+1)=2b(n)+y is given by the formula b(n)=A053644(n)+x*(n-A053644(n))+y*(A053644(n)-1).

FORMULA

a(n)=2^floor(log(n)/log(2))+n-1

PROGRAM

(PARI) a(n)=if(n<2, 1, if(n%2, a(n-1)+1, a(n/2)*2+1))

CROSSREFS

Cf. A053644 (x=y=0), A054429(x=-1, y=+1), A062050(x=+1, y=-1).

Sequence in context: A057811 A026343 A080722 this_sequence A061094 A100991 A075821

Adjacent sequences: A092751 A092752 A092753 this_sequence A092755 A092756 A092757

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Apr 13 2004

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 July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research