Add up the positive integers that are coprime to n in order (starting at 1). a(n) is the smallest such partial sum that is >= n.

A117893

Add up the positive integers that are coprime to n in order (starting at 1). a(n) is the smallest such partial sum that is >= n.

Terms

    a(0) =1a(1) =4a(2) =3a(3) =4a(4) =6a(5) =6a(6) =10a(7) =9a(8) =12a(9) =11a(10) =15a(11) =13a(12) =15a(13) =18a(14) =22a(15) =16a(16) =21a(17) =24a(18) =21a(19) =20a(20) =30a(21) =25a(22) =28a(23) =24a(24) =31a(25) =36a(26) =27a(27) =29a(28) =36a(29) =32

External references