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.

A057169 Least integer with the same nonzero decimal digits as n and one more 0 digit.

Original entry on oeis.org

10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 200, 102, 202, 203, 204, 205, 206, 207, 208, 209, 300, 103, 203, 303, 304, 305, 306, 307, 308, 309, 400, 104, 204, 304, 404, 405, 406, 407, 408, 409, 500, 105
Offset: 1

Views

Author

N. J. A. Sloane, Sep 15 2000

Keywords

Crossrefs

Decimal analog of A057168. Cf. A004185.

Programs

  • Maple
    f:= proc(n) local L,m,p;
    L:= convert(n,base,10);
    m:= nops(L);
    L:= sort(subs(0=NULL,L));
    p:= nops(L);
    10^m*L[1]+add(L[j]*10^(p-j),j=2..p)
    end proc:
    map(f, [$1..100]); # Robert Israel, May 06 2018

Extensions

Definition corrected by Robert Israel, May 06 2018