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.

A062384 Positive numbers whose product of digits is 7 times their sum.

This page as a plain text file.
%I A062384 #15 Sep 11 2022 09:35:27
%S A062384 279,297,357,375,537,573,729,735,753,792,927,972,1447,1474,1744,4147,
%T A062384 4174,4417,4471,4714,4741,7144,7414,7441,11367,11376,11637,11673,
%U A062384 11736,11763,12247,12274,12427,12472,12724,12742,13167,13176,13617,13671
%N A062384 Positive numbers whose product of digits is 7 times their sum.
%H A062384 Harry J. Smith, <a href="/A062384/b062384.txt">Table of n, a(n) for n = 1..500</a>
%e A062384 1447 belongs to the sequence as (1*4*4*7)/(1+4+4+7) = 112/16 = 7.
%o A062384 (PARI) isok(n) = my(d=digits(n)); vecprod(d)==7*vecsum(d) \\ _Mohammed Yaseen_, Sep 09 2022
%o A062384 (Python)
%o A062384 from math import prod
%o A062384 def ok(n): d = list(map(int, str(n))); return n > 0 and prod(d) == 7*sum(d)
%o A062384 print([k for k in range(14000) if ok(k)]) # _Michael S. Branicky_, Sep 09 2022
%Y A062384 Cf. A011540, A034710, A062034, A062035, A062036, A062382, A062037, A062040, A062041, A062043, A062045.
%K A062384 nonn,base,easy
%O A062384 1,1
%A A062384 _Amarnath Murthy_, Jun 27 2001
%E A062384 Corrected and extended by Larry Reeves (larryr(AT)acm.org), Jul 06 2001