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.

A199986 Numbers with digital product = 2.

Original entry on oeis.org

2, 12, 21, 112, 121, 211, 1112, 1121, 1211, 2111, 11112, 11121, 11211, 12111, 21111, 111112, 111121, 111211, 112111, 121111, 211111, 1111112, 1111121, 1111211, 1112111, 1121111, 1211111, 2111111, 11111112, 11111121, 11111211, 11112111, 11121111, 11211111
Offset: 1

Views

Author

Jaroslav Krizek, Nov 13 2011

Keywords

Comments

Subsequence of A034049.

Programs

  • Maple
    f:= proc(d) local b,i;
      b:= (10^d-1)/9;
      seq(b+10^i,i=0..d-1);
    end proc:
    seq(f(d),d=1..9); # Robert Israel, Jan 13 2021
  • PARI
    one(n)=if(n,10^n\9,"")
    for(n=0,9,for(m=0,n,print1(one(n-m)2one(m)", "))) \\ Charles R Greathouse IV, Nov 13 2011
    
  • Python
    def athrough(k1s):
      return [int("1"*(i-j)+"2"+"1"*j) for i in range(k1s+1) for j in range(i+1)]
    print(athrough(8)) # Michael S. Branicky, Feb 12 2021