a(n) is the absolute value of n minus sum of all the remainders modulo the numbers below n.

A166248

a(n) is the absolute value of n minus sum of all the remainders modulo the numbers below n.

Terms

    a(0) =1a(1) =2a(2) =2a(3) =3a(4) =1a(5) =3a(6) =1a(7) =0a(8) =3a(9) =3a(10) =11a(11) =5a(12) =15a(13) =17a(14) =21a(15) =20a(16) =34a(17) =29a(18) =45a(19) =41a(20) =49a(21) =55a(22) =75a(23) =61a(24) =78a(25) =86a(26) =98a(27) =96a(28) =122a(29) =108

External references