[go: up one dir, main page]

login
Search: a138709 -id:a138709
     Sort: relevance | references | number | modified | created      Format: long | short | data
n-th run has length n-th positive triangular number, with digits 0 and 1 only, starting with 1.
+10
2
1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
1,1
EXAMPLE
.n ..... Run ............................... Length
.1 ..... 1 ................................. 1
.2 ..... 0,0,0 ............................. 3
.3 ..... 1,1,1,1,1,1........................ 6
.4 ..... 0,0,0,0,0,0,0,0,0,0 ............... 10
.5 ..... 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 ..... 15
MATHEMATICA
Flatten[Table[Join[PadRight[{}, (n(n+1))/2, 1], PadRight[{}, ((n+1)(n+2))/2, 0]], {n, 1, 7, 2}]] (* Harvey P. Dale, Dec 11 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Mar 29 2008
STATUS
approved
Concatenation of k digits 1, k digits 0 and k digits 1, where k is the n-th positive Fibonacci number.
+10
1
101, 101, 110011, 111000111, 111110000011111, 111111110000000011111111, 111111111111100000000000001111111111111, 111111111111111111111000000000000000000000111111111111111111111
OFFSET
1,1
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Omar E. Pol, Mar 29 2008
STATUS
approved
n-th run has length n-th nonprime number, with digits 0 and 1 only, starting with 1.
+10
1
1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
1,1
EXAMPLE
.n ..... Run ................... Length
.1 ..... 1 ..................... 1
.2 ..... 0,0,0,0 ............... 4
.3 ..... 1,1,1,1,1,1 ........... 6
.4 ..... 0,0,0,0,0,0,0,0 ....... 8
.5 ..... 1,1,1,1,1,1,1,1,1 ..... 9
MATHEMATICA
Join[{1}, {PadRight[{}, #[[1]], 0], PadRight[{}, #[[2]], 1]}&/@Partition[Select[Range[ 20], CompositeQ], 2]]//Flatten (* Harvey P. Dale, May 26 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Apr 06 2008
STATUS
approved
n-th run has length n-th nonprime number A018252, with digits 0 and 1 only, starting with 0.
+10
1
0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
OFFSET
1,1
COMMENTS
Also the n-th run has length A141468, with digits 0 and 1 only, starting with 1.
EXAMPLE
.n ..... Run ................... Length
.1 ..... 0 ..................... 1
.2 ..... 1,1,1,1 ............... 4
.3 ..... 0,0,0,0,0,0 ........... 6
.4 ..... 1,1,1,1,1,1,1,1 ....... 8
.5 ..... 0,0,0,0,0,0,0,0,0 ..... 9
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Apr 06 2008
STATUS
approved

Search completed in 0.008 seconds