login
A172415
Numbers equal to the product of (each of its decimal digits, plus the number of decimal digits).
0
12, 24, 35, 56, 4752, 7744, 16500, 91728, 917280
OFFSET
1,1
EXAMPLE
56 is in the sequence because 56 = (5 + 2) * (6 + 2) (5 and 6 are digits in 56 and 2 is number of digits in 56)
MATHEMATICA
Select[Range[1000000], Times@@(IntegerDigits[#]+IntegerLength[#])==#&] (* Harvey P. Dale, Aug 06 2013 *)
PROG
(Other) DO: rezultat = 1: stevilostr$ = STR$(stevilo) :stevilostevk = LEN(stevilostr$) :FOR k = 1 TO stevilostevk: stevka$ = MID$(stevilostr$, k, 1): stevka = VAL(stevka$): rezultat = rezultat * (stevka + stevilostevk): NEXT k: IF stevilo = rezultat THEN PRINT stevilo, rezultat: stevilo = stevilo +1: LOOP UNTIL inkey$ <> ""
CROSSREFS
Sequence in context: A164014 A336772 A098113 * A195556 A083547 A009185
KEYWORD
fini,full,nonn,base
AUTHOR
Boris Hostnik (megpplus(AT)siol.net), Feb 02 2010
STATUS
approved