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!)
A062036 Positive numbers whose product of digits is four times their sum. 11
88, 189, 198, 246, 264, 426, 462, 624, 642, 819, 891, 918, 981, 1247, 1274, 1344, 1427, 1434, 1443, 1472, 1724, 1742, 2147, 2174, 2226, 2262, 2417, 2471, 2622, 2714, 2741, 3144, 3414, 3441, 4127, 4134, 4143, 4172, 4217, 4271, 4314, 4341, 4413, 4431 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
1344 belongs to the sequence as (1*3*4*4)/(1+3+4+4) = 48/12 = 4.
MATHEMATICA
p4sQ[n_]:=Module[{idn=IntegerDigits[n]}, Times@@idn/Total[idn]==4]; Select[Range[5000], p4sQ] (* Harvey P. Dale, Apr 26 2011 *)
PROG
(PARI) isok(n) = my(d=digits(n)); vecprod(d)==4*vecsum(d) \\ Mohammed Yaseen, Jul 31 2022
(Python)
from math import prod
def ok(n): d = list(map(int, str(n))); return prod(d) == 4*sum(d)
print([k for k in range(1, 5000) if ok(k)]) # Michael S. Branicky, Jul 31 2022
CROSSREFS
Sequence in context: A044420 A044801 A342451 * A184022 A116448 A046330
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jun 27 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Jul 06 2001
Offset corrected by Mohammed Yaseen, Jul 31 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 April 24 19:59 EDT 2024. Contains 371963 sequences. (Running on oeis4.)