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.

A090332 Numbers with no divisors >1 that are prefixes of other divisors in binary representation.

Original entry on oeis.org

1, 2, 3, 5, 7, 9, 11, 13, 17, 19, 23, 25, 29, 31, 33, 35, 37, 41, 43, 47, 49, 53, 59, 61, 65, 67, 69, 71, 73, 77, 79, 83, 89, 91, 97, 101, 103, 107, 109, 113, 121, 125, 127, 129, 131, 133, 137, 139, 141, 143, 145, 149, 151, 155, 157, 161, 163, 167, 169, 173, 179, 181
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 26 2003

Keywords

Comments

A090333 is a subsequence.
Complement of A090334.
Divisors >1 of a(n) in binary representation form a prefix code.

Examples

			Divisors >1 of a(188)=637: {7,13,49,91,637}, in binary: {111, 1101, 110001, 1011011, 1001111101}.
		

Crossrefs

Programs

  • Maple
    filter:= proc(n) local d,  i,j;
      d:= numtheory:-divisors(n);
      for i in d do
        for j from 1 to ilog2(i)-1 do
          if member(floor(i/2^j), d) then return false fi
      od od;
      true
    end proc:
    select(filter, [$1..200]); # Robert Israel, Jul 08 2020
  • Mathematica
    filterQ[n_] := Catch@Module[{d = Divisors[n], j}, Do[
         For[j = 1, j <= Floor@Log[2, i]-1, j++,
         If[MemberQ[d, Floor[i/2^j]], Throw[False]]], {i, d}];
         True];
    Select[Range[200], filterQ] (* Jean-François Alcover, Dec 15 2021, after Robert Israel *)

Formula

A090330(a(n)) = 0.
A090331(a(n)) = 1.

Extensions

Missing term 121 inserted by Robert Israel, Jul 08 2020

A090335 Smallest number with exactly n distinct prime factors such that in binary representation the divisors >1 form a prefix code.

Original entry on oeis.org

1, 2, 33, 2093, 239723, 29918977, 17597346187, 17155385292853, 10633323942990239, 15790705299133143889
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 26 2003

Keywords

Comments

Conjecture: the sequence is defined for all n.
a(10) <= 281594003343201014885689. - David Wasserman, Dec 13 2005

Examples

			a(3) = 2093 = 7*13*23 with divisors >1: 7, 13, 23, 91, 161, 299 and 2093, which are prefix-free in binary: 111, 1101, 10111, 1011011, 10100001, 100101011 and 100000101101.
		

Crossrefs

Formula

a(n) = Min{k: A090330(k)=0 and A001221(k)=n}.

Extensions

More terms from David Wasserman, Dec 13 2005
Showing 1-2 of 2 results.