[go: up one dir, main page]

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!)
A103756 Number of contiguous digits i in the counting numbers, for i=2. 1
1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 2, 5, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
Write the natural numbers as an infinite sequence of digits, starting at the left; and count the digits of each group of "2"'s you encounter (the smallest "groups" have one "2").
LINKS
EXAMPLE
a(1)=1: the first "2" of the counting numbers, isolated.
a(2)=1: the second "2", second digit of number 12, isolated.
a(3)=1 the first digit of number 20, isolated.
a(4)=1: the first digit of number 21, isolated.
a(5)=3: two "2"'s of 22 followed by one "2" of 23 = three "2"'s, the next group of "2"'s.
MATHEMATICA
Length/@Select[Split[Flatten[IntegerDigits/@Range[300]]], Union[#]=={2}&] (* Harvey P. Dale, Jun 10 2023 *)
CROSSREFS
Sequence in context: A358692 A094404 A361129 * A103755 A355818 A326538
KEYWORD
nonn,base
AUTHOR
Alexandre Wajnberg, Mar 28 2005
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 August 30 19:26 EDT 2024. Contains 375545 sequences. (Running on oeis4.)