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-2 of 2 results.

A144795 A positive integer n is included if every 1 in binary n is next to at least one other 1.

Original entry on oeis.org

3, 6, 7, 12, 14, 15, 24, 27, 28, 30, 31, 48, 51, 54, 55, 56, 59, 60, 62, 63, 96, 99, 102, 103, 108, 110, 111, 112, 115, 118, 119, 120, 123, 124, 126, 127, 192, 195, 198, 199, 204, 206, 207, 216, 219, 220, 222, 223, 224, 227, 230, 231, 236, 238, 239, 240, 243, 246
Offset: 1

Views

Author

Leroy Quet, Sep 21 2008

Keywords

Comments

n is included if A144790(n) >= 2.
A173024 is a subsequence. - Reinhard Zumkeller, Feb 07 2010

Crossrefs

Complement of A377169.

Programs

  • Maple
    isA144795 := proc(n) local bind,i ; bind := convert(n,base,2) ; for i from 1 to nops(bind) do if i = 1 then if op(i,bind) = 1 and op(i+1,bind) = 0 then RETURN(false) : fi; elif i = nops(bind) then if op(i,bind) = 1 and op(i-1,bind) = 0 then RETURN(false) : fi; else if op(i,bind) = 1 and op(i-1,bind) = 0 and op(i+1,bind) = 0 then RETURN(false) : fi; fi; od: RETURN(true) ; end: for n from 3 to 400 do if isA144795(n) then printf("%d,",n) ; fi; od: # R. J. Mathar, Sep 29 2008
  • Mathematica
    Select[Range@ 250, AllTrue[Map[Length, Select[Split@ IntegerDigits[#, 2], First@ # == 1 &]], # > 1 &] &] (* Michael De Vlieger, Aug 20 2017 *)

Extensions

Extended by R. J. Mathar, Sep 29 2008

A377167 Nonnegative integers containing isolated zeros in their binary representation.

Original entry on oeis.org

0, 2, 5, 6, 10, 11, 13, 14, 18, 20, 21, 22, 23, 26, 27, 29, 30, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 50, 52, 53, 54, 55, 58, 59, 61, 62, 66, 69, 70, 74, 75, 77, 78, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 98, 101, 102, 104, 105, 106
Offset: 1

Views

Author

Paolo Xausa, Oct 18 2024

Keywords

Comments

A 0 is isolated if it's not adjacent to another 0.

Examples

			18 is a term because 18 = 10010_2 contains one isolated 0.
85 is a term because all zeros in 85 = 1010101_2 are isolated.
		

Crossrefs

Complement of A175054.

Programs

  • Mathematica
    Select[Range[0, 150], MemberQ[Split[IntegerDigits[#, 2]], {0}] &]

Formula

{ k : k=0 or 2k+1 in {A004748} }.
Showing 1-2 of 2 results.