Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A133468
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A133468 A080814 complemented, then interpreted as binary and then re-expressed in decimal form (e.g. "1221" = "0110"). Alternately, view as A080814 with "1" mapped to "1" and "2" mapped to "0". +0
2
1, 2, 9, 150, 38505, 2523490710, 10838310072981296745 (list; graph; listen)
OFFSET

0,2

FORMULA

The "~" operator, as used here, represents binary inversion/complement. a(0) = 1 a(n) = a(n-1) followed by ~a(n-1)

PROGRAM

function invert(string s) returns string { s.replace("0", "2"); s.replace("1", "0"); s.replace("2", "1"); } function f(int n) returns string { if (n==0) return "1"; return concat(f(n-1), invert(f(n-1)); //Blatant opportunity for optimization } function a(int n) returns int { return f(n).InterpretAsBinary(); }

CROSSREFS

Cf. A080814, A080815, A048707.

Sequence in context: A110860 A050995 A117116 this_sequence A081459 A038843 A053294

Adjacent sequences: A133465 A133466 A133467 this_sequence A133469 A133470 A133471

KEYWORD

nonn

AUTHOR

Dan Reif (integer-sequences(AT)angelfaq.com), Nov 28 2007, corrected Nov 30 2007

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 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research