Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A059448
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A059448 If A_k are the terms from 2^(k-1) through to 2^k-1, then A_(k+1) is B_k A_k where B_k is A_k with 0's and 1's swapped, starting from a(1)=0; also parity of number of zero digits when n is written in binary. +0
6
0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1 (list; graph; listen)
OFFSET

1,1

COMMENT

a(0) not given as it could be 1 or 0 depending on the definition or formula used.

FORMULA

a(2n)=1-a(n); a(2n+1)=a(n)=1-a(2n). If 2^k<=n<2^(k+1) then a(n)=1-a(n-2^(k-1)). a(n)=A023416(n) mod 2 =A059009(n)-2n =2n+1-A059010(n) =|A010060(n)-A030300(n-1)|.

Let b(1)=1 and b(n)=b(n-ceil(n/2))-b(n-floor(n/2)) then for n>=1 a(n)=(1/2)*(1-b(2n+1)) - Benoit Cloitre (benoit7848c(AT)orange.fr), Apr 26 2005

CROSSREFS

Characteristic function of A059009.

Sequence in context: A084091 A080846 A082401 this_sequence A038219 A138710 A116865

Adjacent sequences: A059445 A059446 A059447 this_sequence A059449 A059450 A059451

KEYWORD

nice,nonn

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Feb 02 2001

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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research