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.

A214213 Erroneous version of A005942.

Original entry on oeis.org

1, 2, 4, 6, 2, 12, 16, 4, 6, 24, 28, 32, 36, 8, 10, 12, 14, 48, 52, 56, 60, 64, 68, 72, 76, 16, 18, 20, 22, 24, 26, 28, 30, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 192, 196, 200, 204, 208, 212, 216, 220, 224, 228, 232, 236, 240, 244, 248, 252, 256, 260, 264
Offset: 0

Views

Author

N. J. A. Sloane, Jul 10 2012

Keywords

Crossrefs

Cf. A005942.

Programs

  • Maple
    f:=proc(n) local m;
    if n <= 2 then 2^n;
    else m:=floor(log(n-1)/log(2))-1;
         if n <= 3*2^m then 4*n-2^(m+1)-4;
         else 2*n-2^(m+2)-2; # should have been 2*n+2^(m+2)-2
         fi;
    fi;
    end;