The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062998 Numbers with property that sum of digits is less than or equal to product of digits. 9

%I #10 Feb 21 2017 15:58:06

%S 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,

%T 43,44,45,46,47,48,49,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,

%U 72,73,74,75,76,77,78,79,82,83,84,85,86,87,88,89,92,93,94,95,96,97,98

%N Numbers with property that sum of digits is less than or equal to product of digits.

%H Harry J. Smith, <a href="/A062998/b062998.txt">Table of n, a(n) for n=1,...,1000</a>

%t Select[Range[100],Total[IntegerDigits[#]]<=Times@@IntegerDigits[#]&] (* _Harvey P. Dale_, Feb 21 2017 *)

%o (PARI) SumD(x)= { s=0; while (x>9, s+=x-10*(x\10); x\=10); return(s + x) } ProdD(x)= { p=1; while (x>9, p*=(x-10*(x\10)); x\=10); return(p*x) } { n=0; for (a=1, 10^9, if (SumD(a) <= ProdD(a), write("b062998.txt", n++, " ", a); if (n==1000, break)) ) } \\ _Harry J. Smith_, Aug 15 2009

%o (PARI) is_A062998(n)={normlp(n=digits(n),1)<=prod(i=1,#n,n[i])} \\ _M. F. Hasler_, Oct 29 2014

%Y Cf. A007953, A007954, A034710, A062329, A062996, A062997, A062998, A062999.

%Y Not the same as A037344 (contains 124).

%K base,nonn,easy

%O 1,2

%A _Henry Bottomley_, Jun 29 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 27 16:57 EDT 2024. Contains 372880 sequences. (Running on oeis4.)