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!)
A023651 Numbers k such that (product of digits of k) * (sum of digits of k) = 2k. 4
0, 2, 15, 24, 1575, 39366 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Except for k = 0, this sequence is a subsequence of A049101. - Jason Yuen, Feb 26 2024
LINKS
MATHEMATICA
Do[ If[ 2n == Apply[ Times, IntegerDigits[n]] Apply[ Plus, IntegerDigits[n]], Print[n]], {n, 0, 10^7} ]
PROG
(PARI) isok(n) = if(n, factorback(digits(n)), 0) * sumdigits(n) == 2*n \\ Mohammed Yaseen, Jul 22 2022
(Python)
from math import prod
def s(n): return sum(map(int, str(n)))
def p(n): return prod(map(int, str(n)))
for n in range(0, 10**6):
if p(n)*s(n)==2*n:
print(n) # Mohammed Yaseen, Jul 22 2022
CROSSREFS
Sequence in context: A153711 A116049 A184236 * A116028 A175828 A300346
KEYWORD
nonn,base,fini,full
AUTHOR
Jason Earls, Dec 11 2001
EXTENSIONS
Offset corrected by Arkadiusz Wesolowski, Oct 17 2012
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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)