OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..500
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
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