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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A045049 Numbers n with property that in base 4 representation the numbers of 0's and 2's are 2 and 2, respectively. 1
130, 136, 160, 266, 290, 296, 386, 392, 416, 518, 521, 523, 526, 530, 536, 545, 547, 548, 556, 562, 568, 578, 584, 608, 641, 643, 644, 652, 656, 688, 706, 712, 736, 778, 802, 808, 898, 904, 928, 1050, 1062, 1065, 1067, 1070 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Enrique Pérez Herrero, Table of n, a(n) for n = 1..100000

MATHEMATICA

fQ[n_] := Block[{idn = IntegerDigits[n, 4]}, Count[idn, 0] == Count[idn, 2] == 2]; Select[Range@1100, fQ] (* Robert G. Wilson v, Dec 11 2017 *)

PROG

import numpy as np

for a in range(10000):

    x = np.base_repr(a, base=4)

    if(x.count("0") == 2 and x.count("2") == 2):

        print(a)

#Enrique Pérez Herrero, Dec 06 2017

CROSSREFS

Sequence in context: A043604 A250740 A025372 * A163555 A025373 A025364

Adjacent sequences:  A045046 A045047 A045048 * A045050 A045051 A045052

KEYWORD

nonn,base

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 July 17 08:42 EDT 2019. Contains 325098 sequences. (Running on oeis4.)