10,5

a((10^n - 1)/9) = n. for n > 2. a(1111111 n times ) = a(A000042(n)) = n, n > 2.

Differs from A067458 first at n=101, where A067458(101)=0 and a(101) = (101 mod 1) + (101 mod 11) + (101 mod 10)=0+2+1=3. [R. J. Mathar, Sep 11 2008]

Table of n, a(n) for n=10..110.

a(1234) = Rem[1234/123] + Rem[1234/124]+ Rem[1234/134] + Rem[1234/234] = 4+ 118 + 28 + 64 = 214 where Rem [a/b] = the remainder when a is divided by b.

Cf. A000042.

Sequence in context: A265584 A078909 A067458 * A324471 A122512 A128263

Adjacent sequences: A088327 A088328 A088329 * A088331 A088332 A088333

base,nonn

Amarnath Murthy, Oct 01 2003

More terms from Ray Chandler, Oct 06 2003

approved