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!)
A045177 Numbers whose base-5 representation contains exactly one 0 and one 2. 1

%I #14 Feb 25 2023 20:37:50

%S 10,27,35,51,53,54,55,65,70,77,85,102,110,132,136,138,139,142,147,152,

%T 160,176,178,179,180,190,195,202,210,227,235,256,258,259,266,268,269,

%U 271,273,274,276,278,279,280,290,295,326,328,329,330,340,345,351,353

%N Numbers whose base-5 representation contains exactly one 0 and one 2.

%o (Python)

%o from sympy.ntheory import count_digits

%o def ok(n): c = count_digits(n, b=5); return c[0] == c[2] == 1

%o print([k for k in range(354) if ok(k)]) # _Michael S. Branicky_, Oct 27 2021

%Y Cf. A007091.

%Y Subsequence of A039284.

%K nonn,base

%O 1,1

%A _Clark Kimberling_

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 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)