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.

Previous Showing 11-12 of 12 results.

A230302 Let M(1)=0 and for n >= 2, let B(n)=M(ceiling(n/2))+M(floor(n/2))+2, M(n)=2^B(n)+M(floor(n/2))+1; sequence gives B(n).

Original entry on oeis.org

2, 7, 12, 136, 260, 4233, 8206, 87112285931760246646623899502532662136846, 174224571863520493293247799005065324265486, 1852673427797059126777135760139006525739432040582009271277945243629142736371850, 3705346855594118253554271520278013051304639509300498049262642688253220148478214
Offset: 2

Views

Author

N. J. A. Sloane, Oct 24 2013

Keywords

Comments

a(n) is the leading power of 2 in M(n) = A230303(n).

Examples

			The terms after 8206 are 2^136+4110, 2^137+14, 2^260+2^136+136, 2^261+262, 2^4233+2^260+260, ... (see also A230303).
		

Crossrefs

Cf. A228085, A230093, A230303 (for M(n)).

Programs

  • Maple
    f:=proc(n) option remember; local B, M;
    if n<=1 then RETURN([0,0]);
    else
    if (n mod 2) = 0 then B:=2*f(n/2)[2]+2;
       else B:=f((n+1)/2)[2]+f((n-1)/2)[2]+2; fi;
    M:=2^B+f(floor(n/2))[2]+1; RETURN([B,M]); fi;
    end proc;
    [seq(f(n)[1],n=1..7)];

Extensions

a(11) corrected, expressions for a(2)-a(100) added by Max Alekseyev, Nov 02 2013

A272652 a(n) is the smallest even number which has n inverse images under the map x -> x + (binary weight of x).

Original entry on oeis.org

0, 14, 134, 4102, 87112285931760246646623899502532662132742, 1852673427797059126777135760139006525652319754650249024631321344126610074239106
Offset: 1

Views

Author

Max Alekseyev and N. J. A. Sloane, May 13 2016

Keywords

Comments

If the word "even" is omitted the sequence is A230303.
The next term is a(7) = 2^4233 + 130.

Examples

			The smallest number with two inverses is 14: the inverses are 11 = 1011_2 which maps to 11+3 = 14, and 12 = 1100_2 which maps to 12+2 = 14.
		

Crossrefs

Previous Showing 11-12 of 12 results.