login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037863 a(n)=(number of digits <=1)-(number of digits >1) in base 4 representation of n. 1
1, -1, -1, 2, 2, 0, 0, 0, 0, -2, -2, 0, 0, -2, -2, 3, 3, 1, 1, 3, 3, 1, 1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -3, -3, -1, -1, -3, -3, 1, 1, -1, -1, 1, 1, -1, -1, -1, -1, -3, -3, -1, -1, -3, -3, 4, 4, 2, 2, 4, 4, 2, 2, 2, 2, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

Table of n, a(n) for n=0..74.

MAPLE

A037863 := proc(n)

    a := 0 ;

    dgs := convert(n, base, 4);

    for i from 1 to nops(dgs) do

        if op(i, dgs)<=1 then

            a := a+1 ;

        else

            a := a-1 ;

        end if;

    end do:

    a ;

end proc: # R. J. Mathar, Oct 16 2015

CROSSREFS

Sequence in context: A279279 A035447 A227188 * A163536 A276009 A113302

Adjacent sequences:  A037860 A037861 A037862 * A037864 A037865 A037866

KEYWORD

base,sign

AUTHOR

Clark Kimberling

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 15 12:29 EDT 2019. Contains 328026 sequences. (Running on oeis4.)