login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A175467 Write n in binary. Place a 0 between every pair of adjacent 1's, and place a 1 between every pair of adjacent 0's. a(n) is the decimal equivalent of the result. 1
1, 2, 5, 10, 5, 10, 21, 42, 21, 10, 21, 42, 21, 42, 85, 170, 85, 42, 85, 42, 21, 42, 85, 170, 85, 42, 85, 170, 85, 170, 341, 682, 341, 170, 341, 170, 85, 170, 341, 170, 85, 42, 85, 170, 85, 170, 341, 682, 341, 170, 341, 170, 85, 170, 341, 682, 341, 170, 341, 682, 341 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MAPLE
A175467 := proc(n) local l2, a, i ; l2 := convert(n, base, 2) ; a := [op(1, l2)] ; for i from 2 to nops(l2) do if op(i, l2) = op(i-1, l2) then a := [op(a), 1-op(i, l2)] ; end if; a := [op(a), op(i, l2)] ; end do: add( op(i, a)*2^(i-1), i=1..nops(a)) ; end proc: seq(A175467(n), n=1..80) ; # R. J. Mathar, Sep 28 2010
CROSSREFS
Cf. A000975. - R. J. Mathar, Sep 28 2010
Sequence in context: A194356 A227317 A224300 * A361806 A188525 A324503
KEYWORD
base,nonn
AUTHOR
Leroy Quet, May 24 2010
EXTENSIONS
More terms from R. J. Mathar, Sep 28 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 19:31 EDT 2024. Contains 371962 sequences. (Running on oeis4.)