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.

A062998 Numbers whose sum of digits is less than or equal to its product of digits.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 45, 46, 47, 48, 49, 52, 53, 54, 55, 56, 57, 58, 59, 62, 63, 64, 65, 66, 67, 68, 69, 72, 73, 74, 75, 76, 77, 78, 79, 82, 83, 84, 85, 86, 87, 88, 89, 92, 93, 94, 95, 96, 97, 98, 99, 123, 124, 125, 126, 127, 128, 129, 132, 133, 134, 135
Offset: 1

Views

Author

Henry Bottomley, Jun 29 2001

Keywords

Crossrefs

Not the same as A037344 (contains 124).

Programs

  • Maple
    isA062998 := proc(n)
            local dgs,s,p ;
            dgs := convert(n,base,10) ;
            s := add(i,i=dgs) ;
            p := mul(i,i=dgs) ;
            if s <= p then
                    true;
            else
                    false;
            end if;
    end proc:
    for n from 2 to 150 do
            if isA062998(n) then
                    printf("%d,",n) ;
            end if;
    end do:   # R. J. Mathar, Aug 14 2025
  • Mathematica
    Select[Range[100],Total[IntegerDigits[#]]<=Times@@IntegerDigits[#]&] (* Harvey P. Dale, Feb 21 2017 *)
  • PARI
    isok(k)={my(d=digits(k)); vecsum(d) <= vecprod(d)} \\ Harry J. Smith, Aug 15 2009
    
  • PARI
    is_A062998(n)={normlp(n=digits(n),1)<=prod(i=1,#n,n[i])} \\ M. F. Hasler, Oct 29 2014