[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!)
A065447 Concatenation of 1, 00, 111, 0000, ..., n 1's (if n is odd) or n 0's (if n is even). 6
1, 100, 100111, 1001110000, 100111000011111, 100111000011111000000, 1001110000111110000001111111, 100111000011111000000111111100000000, 100111000011111000000111111100000000111111111, 1001110000111110000001111111000000001111111110000000000 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) is divisible by A002275([(n+1)/2]) = (10^[(n+1)/2]-1)/9. Cf. A262806. - Max Alekseyev, Jun 02 2013
The unique sequence of binary words a(n) such that the k-th run of a(n) has length k, for k = 1..n . - Clark Kimberling, Mar 08 2024
LINKS
EXAMPLE
a(2) = 100, the concatenation of one 1, two 0's.
a(3) = 100111, the concatenation of one 1, two 0's, three 1's.
a(4) = 1001110000, the concatenation of one 1, two 0's, three 1's, four 0's.
MAPLE
a:= n-> parse(cat((irem(i, 2)$i)$i=1..n)):
seq(a(n), n=1..10); # Alois P. Heinz, Mar 08 2024
MATHEMATICA
FoldList[Join, {1}, Map[ConstantArray[Mod[#, 2], #] &, Range[2, 10]]] (* Peter J. C. Moses, Mar 08 2024 *)
PROG
(PARI) { m=10; for (n=1, 44, if (n==1, a=1, m*=10; a*=m; if (n%2, a+=(m - 1)/9)); write("b065447.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 19 2009
CROSSREFS
For decimal version see A065760.
Sequence in context: A307810 A151648 A013747 * A036507 A369405 A202055
KEYWORD
base,easy,nonn
AUTHOR
Lior Manor, Nov 18 2001
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 28 04:21 EDT 2024. Contains 375477 sequences. (Running on oeis4.)