Additive Persistence
K - 29 Chars
Input is a filename passed as an argument, 29 chars not including filename.
`0:{5:x,-1+#(+/10_vs)\x}'.:'0:"file"
- 35 -> 31: Remove outside function.
- 31 -> 29: Remove parens.
Python 84 Chars
while 1:
m=n=int(raw_input());c=0
while n>9:c+=1;n=sum(map(int,str(n)))
print m,c
Python (93 bytes)
f=lambda n,c:n>9and f(sum(map(int,str(n))),c+1)or c
while 1:n=int(raw_input());print n,f(n,0)