login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A125960 Sum of [n mod Sum_of_digits(n)] and [Sumr_of_digits(n) mod n]. 0
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 5, 9, 9, 9, 9, 9, 19, 2, 3, 6, 8, 6, 11, 10, 9, 18, 18, 3, 7, 7, 9, 13, 11, 9, 17, 16, 15, 4, 6, 6, 8, 12, 9, 16, 14, 12, 23, 5, 9, 10, 13, 9, 15, 12, 21, 19, 17, 6, 12, 14, 9, 14, 21, 18, 15, 26, 24, 7, 15, 9, 13, 19, 15, 24, 21, 18, 31, 8, 9, 12, 17, 12, 20 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,11

COMMENTS

19 is the only number for which n=[n mod Sum_of_digits(n)] + [Sum_of_digits(n) mod n]

LINKS

Table of n, a(n) for n=0..84.

EXAMPLE

n=13 (13 mod 4)=1 (4 mod 13)=4 1+4=5

MAPLE

P:=proc(n) local i, k, w; for i from 1 by 1 to n do w:=0; k:=i; while k>0 do w:=w+k-trunc(k/10)*10; k:=trunc(k/10); od; print((i mod w)+(w mod i)); od; end: P(200);

CROSSREFS

Cf. A070635.

Sequence in context: A183526 A087343 A079586 * A141584 A287195 A179437

Adjacent sequences:  A125957 A125958 A125959 * A125961 A125962 A125963

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava and Giorgio Balzarotti, Feb 06 2007, corrected May 09 2008

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 20 01:36 EDT 2019. Contains 324223 sequences. (Running on oeis4.)