[go: up one dir, main page]

login
A066577
a(n) = floor(n/(product of nonzero digits of n)).
3
1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 11, 6, 4, 3, 3, 2, 2, 2, 2, 10, 10, 5, 3, 3, 2, 2, 1, 1, 1, 10, 10, 5, 3, 2, 2, 2, 1, 1, 1, 10, 10, 5, 3, 2, 2, 1, 1, 1, 1, 10, 10, 5, 3, 2, 2, 1, 1, 1, 1, 10, 10, 5, 3, 2, 2, 1, 1, 1, 1, 10, 10, 5, 3, 2, 2, 1, 1, 1, 1, 10, 10, 5, 3, 2, 2, 1, 1, 1, 1, 10, 10, 5, 3, 2, 2, 1
OFFSET
1,10
COMMENTS
a(12) = floor(12/(1*2)) = 6; a(14) = floor(14/(1*4)) floor(3.5) = 3.
LINKS
MATHEMATICA
Table[Floor[n/Times@@(IntegerDigits[n]/.(0->1))], {n, 100}] (* Harvey P. Dale, Apr 19 2014 *)
PROG
(PARI) ProdNzD(x)= { local(d, p=1); while (x>9, d=x%10; if (d, p*=d); x\=10); return(p*x) } { for (n=1, 1000, a=floor(n/ProdNzD(n)); write("b066577.txt", n, " ", a) ) } \\ Harry J. Smith, Mar 07 2010
CROSSREFS
Sequence in context: A059514 A066355 A071206 * A071203 A105743 A105835
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Dec 20 2001
EXTENSIONS
Terms a(38) - a(86) from Harry J. Smith, Mar 07 2010
STATUS
approved