|
|
A172415
|
|
Numbers equal to the product of (each of its decimal digits, plus the number of decimal digits).
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
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
|
|
|
KEYWORD
|
fini,full,nonn,base
|
|
AUTHOR
|
Boris Hostnik (megpplus(AT)siol.net), Feb 02 2010
|
|
STATUS
|
approved
|
|
|
|