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!)
A044054 Numbers k such that string 0,2 occurs in the base-3 representation of k but not of k-1. 1

%I #9 Nov 20 2021 11:36:07

%S 11,20,29,33,38,47,56,60,65,74,83,87,92,99,110,114,119,128,137,141,

%T 146,155,164,168,173,180,191,195,200,209,218,222,227,236,245,249,254,

%U 261,272,276,281,290,297,326,330,335,342,353,357,362,371,380,384,389,398

%N Numbers k such that string 0,2 occurs in the base-3 representation of k but not of k-1.

%o (Python)

%o from sympy.ntheory import digits

%o def cond(n): return "02" in "".join(map(str, digits(n, 3)))

%o def ok(n): return cond(n) and not cond(n-1)

%o print([k for k in range(400) if ok(k)]) # _Michael S. Branicky_, Nov 20 2021

%Y Cf. A007089, A044435.

%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 19 03:30 EDT 2024. Contains 371782 sequences. (Running on oeis4.)