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!)
A062384 Positive numbers whose product of digits is 7 times their sum. 10
279, 297, 357, 375, 537, 573, 729, 735, 753, 792, 927, 972, 1447, 1474, 1744, 4147, 4174, 4417, 4471, 4714, 4741, 7144, 7414, 7441, 11367, 11376, 11637, 11673, 11736, 11763, 12247, 12274, 12427, 12472, 12724, 12742, 13167, 13176, 13617, 13671 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
1447 belongs to the sequence as (1*4*4*7)/(1+4+4+7) = 112/16 = 7.
PROG
(PARI) isok(n) = my(d=digits(n)); vecprod(d)==7*vecsum(d) \\ Mohammed Yaseen, Sep 09 2022
(Python)
from math import prod
def ok(n): d = list(map(int, str(n))); return n > 0 and prod(d) == 7*sum(d)
print([k for k in range(14000) if ok(k)]) # Michael S. Branicky, Sep 09 2022
CROSSREFS
Sequence in context: A228135 A188446 A251624 * A053345 A032505 A252855
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 27 2001
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org), Jul 06 2001
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 April 24 02:41 EDT 2024. Contains 371917 sequences. (Running on oeis4.)