cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-6 of 6 results.

A118249 a(0)=0. Concatenate onto the end of the sequence (from left to right) the integer m_n converted into binary and reversed (with the most significant digit on the right), where m_n is the smallest integer > A118250(n-1) and whose reversed binary representation does not occur anywhere earlier in the sequence (when the concatenated sequence is read from left to right). A118250(n) then equals m_n when written in decimal.

Original entry on oeis.org

0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1
Offset: 0

Views

Author

Leroy Quet, Apr 18 2006

Keywords

Examples

			The sequence begins 0,1,1,1,0,0,1,1,0,1,0,0,0,1,0,1,0,1. Now A118250(6) = 10 (decimal), which is represented by the 0,1,0,1 at the end of the sequence. The binary representation of (decimal) 11 (1101 in binary and reversed) and 12 (0011 in binary and reversed) both occur earlier in the sequence. But the binary representation of 13 (1011 in binary and reversed) does not occur earlier in the sequence, so (1,0,1,1) is added to the end of the sequence. And A118250(7) becomes 13.
		

Crossrefs

Programs

  • Mathematica
    a = {{0}}; Do[k = 1; While[SequenceCount[Flatten@ a, Set[m, Reverse@ IntegerDigits[k, 2]]] > 0, k++]; AppendTo[a, m], {i, 22}]; Flatten@ a (* Michael De Vlieger, Sep 19 2017 *)

Extensions

More terms from Joshua Zucker, Jul 27 2006

A118248 Least nonnegative integer whose binary representation does not occur in the concatenation of the binary representations of all earlier terms.

Original entry on oeis.org

0, 1, 2, 4, 7, 8, 11, 16, 18, 21, 22, 25, 29, 31, 32, 35, 36, 38, 40, 58, 64, 67, 68, 70, 75, 76, 78, 87, 88, 90, 93, 99, 101, 104, 107, 122, 128, 131, 133, 134, 136, 138, 140, 144, 148, 150, 152, 155, 156, 159, 161, 169, 170, 172, 178, 183, 188, 190
Offset: 0

Views

Author

Leroy Quet, Apr 18 2006

Keywords

Comments

Otherwise said: Omit numbers whose binary representation already occurs in the concatenation of the binary representation of earlier terms. As such, a binary analog of A048991 / A048992 (Hannah Rollman's numbers), rather than "early bird" binary numbers A161373. - M. F. Hasler, Jan 03 2013

Crossrefs

Cf. A118247 (concatenation of binary representations), A118250, A118252 (variants where binary representations are reversed).

Programs

  • Mathematica
    Block[{b = {{0}}, a = {0}, k, d}, Do[k = FromDigits[#, 2] &@ Last@ b + 1; While[SequenceCount[Flatten@ b, Set[d, IntegerDigits[k, 2]]] > 0, k++]; AppendTo[b, d]; AppendTo[a, k], {i, 57}]; a] (* Michael De Vlieger, Aug 19 2017 *)
  • PARI
    A118248(n,show=0,a=0)={my(c=[a],find(t,s,L)=L || L=#s; for(i=0,#t-L, vecextract( t,(2^L-1)<M. F. Hasler, Jan 03 2013
    
  • Perl
    $s="";$i=0;do{$i++;$b=sprintf("%b",$i);if(index($s,$b)<0){print("$i=$b\n");$s.=$b}}while(1);

Extensions

More terms from Graeme McRae, Apr 19 2006
Explicit definition from M. F. Hasler, Dec 29 2012
Perl program by Phil Carmody, Mar 19 2015
Crossref and Perl program by Phil Carmody, Mar 19 2015

A118252 The least positive integer whose reversed binary representation does not occur in the concatenation of the reversed binary representations of all preceding terms.

Original entry on oeis.org

1, 2, 3, 4, 8, 10, 11, 12, 15, 16, 22, 24, 27, 32, 35, 36, 38, 43, 44, 54, 59, 64, 66, 70, 76, 79, 83, 85, 88, 91, 95, 97, 99, 116, 122, 127, 128, 130, 132, 136, 140, 147, 148, 150, 155, 158, 163, 169, 170, 175, 176, 179, 182, 184, 192, 196, 201, 217, 232
Offset: 1

Author

Leroy Quet, Apr 18 2006

Keywords

Comments

See the variant A118250 for comments and examples.

Crossrefs

Cf. A118248 (variant without reversal), A118250 (the same with a(0)=0), A118251 (concatenation of terms in binary).
Cf. A190896.

Programs

  • Mathematica
    a = {1}; b = {1}; Do[k = b[[i - 1]] + 1; While[SequenceCount[Flatten@ a, Set[d, Reverse@ IntegerDigits[k, 2]]] != 0, k++]; a = Join[a, d]; AppendTo[b, k], {i, 2, 59}]; b (* Michael De Vlieger, Aug 21 2017 *)
  • PARI
    A118252(n,show=0,a=1)={my(c=[a],S=[],L); for(k=1,n, show & print1(a","); while( setsearch(S,binary(a++)),); c=concat(binary(a),c); S=[]; for(i=0,#c-L=#binary(a), c[i+1] & for(j=i+L,min(i+L+1,#c), S=setunion(S,Set(t=[vecextract(c,2^j-2^i)])))));a}  \\ M. F. Hasler, Dec 29 2012

Extensions

More terms from Graeme McRae, Apr 19 2006
Explicit definition from M. F. Hasler, Dec 29 2012

A190896 Least positive integer whose binary representation does not occur in the concatenation of the binary representations of all earlier terms.

Original entry on oeis.org

1, 2, 3, 4, 8, 10, 13, 15, 16, 19, 20, 32, 35, 37, 38, 40, 49, 54, 61, 64, 67, 68, 73, 74, 79, 80, 85, 87, 93, 103, 117, 121, 127, 128, 131, 134, 136, 139, 141, 143, 148, 151, 152, 155, 156, 158, 160, 165, 166, 170, 172, 174, 182, 193, 197, 217, 218, 239, 241, 251, 256, 259, 262, 264, 267, 268
Offset: 0

Author

M. F. Hasler, Dec 29 2012

Keywords

Comments

See the variant A118250 for comments and examples.

Crossrefs

Cf. A190897 (concatenation of binary representations), A118248 (the same with nonnegative integers), A118250, A118252 (variants where binary representations are reversed).

Programs

  • PARI
    A190896(n,show=0,a=1)={my(c=[0],S=[],L); for(k=1,n, show && print1(a","); while( setsearch(S,binary(a++)),); c=concat(c,binary(a)); S=[]; for(i=0,#c-L=#binary(a), c[i+1] & for(j=i+L,min(i+L+1,#c), S=setunion(S,Set(t=[vecextract(c,2^j-2^i)])))));a}

A190784 Numbers whose binary representation is a substring of the concatenation of the binary representation of all smaller nonnegative integers not listed earlier, taken in decreasing order.

Original entry on oeis.org

2, 6, 7, 9, 11, 12, 14, 17, 19, 20, 21, 22, 25, 26, 27, 28, 29, 30, 31, 33, 34, 37, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 62, 63, 65, 67, 69, 71, 72, 73, 74, 77, 78, 80, 81, 82, 84, 86, 87, 89, 90, 92, 93, 94
Offset: 1

Author

M. F. Hasler, Dec 29 2012

Keywords

Comments

Also, nonnegative integers which do not occur in A118250.
Up to the reversed (decreasing) order of concatenation, a binary analog of Hannah Rollman's numbers A048992.

Examples

			The binary representation of 2="10"[2] is a substring of the concatenation of 1 and 0, therefore a(1)=2. This term a(1)=2="10" will henceforth be excluded from the concatenations considered in the sequel.
The binary representations of 3, 4 and 5 are not a substrings of concat("1", "0") resp. concat("11", "1", "0") resp. concat("100", "11", "1", "0"). (Note that 2="10" is not among the concatenated numbers.)
But 6="110"[2] is again a substring of concat(5="101", 4="100", 3="11", "1", "0"), therefore a(2)=6. In the sequel, a(2)=6="110" will now also be always excluded from the concatenations, as is a(1)=2.
		

Crossrefs

Analog of A128291 for the "with reversal" variant A118250 of A118248.

A190897 Concatenation of A190896 written in binary.

Original entry on oeis.org

1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0
Offset: 0

Author

M. F. Hasler, Dec 29 2012

Keywords

Comments

This sequence is mainly included because the sequences A118248, A118250, A118252 (variants of A190896) had "historically" been defined through the respective analogs A118247, A118249, A118251 of this present ("binary") sequence.

Crossrefs

Cf. A118247, A118249, A118251 (variants with nonnegative integers and/or binary representations reversed).
Showing 1-6 of 6 results.