login
a(n) = floor(n/(sum of digits of n)).
4

%I #17 Jul 19 2016 10:30:05

%S 1,1,1,1,1,1,1,1,1,10,5,4,3,2,2,2,2,2,1,10,7,5,4,4,3,3,3,2,2,10,7,6,5,

%T 4,4,4,3,3,3,10,8,7,6,5,5,4,4,4,3,10,8,7,6,6,5,5,4,4,4,10,8,7,7,6,5,5,

%U 5,4,4,10,8,8,7,6,6,5,5,5,4,10,9,8,7,7,6,6,5,5,5,10,9,8,7,7,6,6,6,5,5,100

%N a(n) = floor(n/(sum of digits of n)).

%H Harry J. Smith, <a href="/A066578/b066578.txt">Table of n, a(n) for n = 1..1000</a>

%e a(12) = floor(12/(1+2)) = 4; a(14) = floor(14/(1+4)) = floor(2.8) = 2.

%e a(24) = floor(24/(2+4)) = 4. a(29) = floor(29/(2+9)) = 2.

%o (PARI) SumD(x)=my(s); while (x>9, s+=x%10; x\=10); return(s + x)

%o for (n=1, 1000, a=floor(n/SumD(n)); write("b066578.txt", n, " ", a)) \\ _Harry J. Smith_, Mar 07 2010

%o (PARI) a(n) = n\sumdigits(n); \\ _Michel Marcus_, Jan 04 2016

%Y Cf. A007953, A066577, A080462.

%K nonn,base

%O 1,10

%A _Amarnath Murthy_, Dec 20 2001

%E More terms from _Reinhard Zumkeller_, Feb 26 2003