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!)
A276254 With respect to the dictionary ordering of words over the alphabet {a,b}, i.e., e,a,b,aa,ab,ba,bb,aaa,..., the sequence is the characteristic function of the language of words that have no consecutive b's. 1
1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
REFERENCES
R. G. Underwood, Fundamentals of Hopf Algebras, UTX, Springer, 2015, page 61.
LINKS
Michel Rigo and Robert Underwood, A Class of Automatic Sequences, arXiv:1712.10259 [cs.FL], 2017-2018.
FORMULA
a(n) = 0 iff A007931(n) contains two (or more) consecutive 2's. - Alois P. Heinz, Aug 26 2016
MAPLE
a:= proc(n) local m, r, d; m, r:= n, 1;
while m>0 do d:= irem(m, 2, 'm');
if d=0 then if r=0 then return 0 fi;
m:= m-1 fi; r:=d;
od; 1
end:
seq(a(n), n=0..200); # Alois P. Heinz, Aug 25 2016
MATHEMATICA
a[n_] := Module[{m, r, d}, {m, r} = {n, 1}; While[m > 0, {m, d} = QuotientRemainder[m, 2]; If[d == 0, If[r == 0, Return[0]]; m = m-1]; r = d]; 1];
Table[a[n], {n, 0, 200}] (* Jean-François Alcover, Mar 24 2018, after Alois P. Heinz *)
CROSSREFS
Cf. A007931.
Sequence in context: A336477 A190230 A141679 * A303300 A249865 A152904
KEYWORD
nonn
AUTHOR
Robert G. Underwood, Aug 25 2016
EXTENSIONS
More terms from Alois P. Heinz, Aug 25 2016
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 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)