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!)
A062035 Positive numbers whose product of digits is three times their sum. 11
66, 159, 167, 176, 195, 235, 253, 325, 333, 352, 519, 523, 532, 591, 617, 671, 716, 761, 915, 951, 1168, 1186, 1236, 1263, 1326, 1362, 1618, 1623, 1632, 1681, 1816, 1861, 2136, 2163, 2316, 2361, 2613, 2631, 3126, 3162, 3216, 3261, 3612, 3621, 6118 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
235 belongs to the sequence as (2*3*5)/(2+3+5) = 30/10 = 3.
MATHEMATICA
s3Q[n_]:=Module[{idn=IntegerDigits[n]}, 3Total[idn]==Times@@idn]; Select[Range[7000], s3Q] (* Harvey P. Dale, Mar 20 2011 *)
PROG
(PARI) isok(n) = my(d=digits(n)); vecprod(d)==3*vecsum(d) \\ Mohammed Yaseen, Jul 29 2022
(Python)
from math import prod
def ok(n): d = list(map(int, str(n))); return prod(d) == 3*sum(d)
print([k for k in range(1, 7000) if ok(k)]) # Michael S. Branicky, Jul 29 2022
CROSSREFS
Sequence in context: A358102 A258966 A258959 * A043514 A044398 A044779
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 27 2001
EXTENSIONS
Corrected and extended by Harvey P. Dale and Larry Reeves (larryr(AT)acm.org), Jul 04 2001
Offset corrected by Mohammed Yaseen, Jul 29 2022
STATUS
approved

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 August 24 10:35 EDT 2024. Contains 375410 sequences. (Running on oeis4.)