One more one (noch nicht übersetzt)
Problem 672
Consider the following process that can be applied recursively to any positive integer n:
- if n=1 do nothing and the process stops,
- if n is divisible by 7 divide it by 7,
- otherwise add 1.
Define g(n) to be the number of 1's that must be added before the process ends. For example:
125+1→126÷7→18+1→19+1→20+1→21÷7→3+1→4+1→5+1→6+1→7÷7→1.Eight 1's are added so g(125)=8. Similarly g(1000)=9 and g(10000)=21.
Define S(N)=∑Nn=1g(n) and H(K)=S(7K−111). You are given H(10)=690409338.
Find H(109) modulo 1117117717.