a(n) = the smallest positive integer that does not divide n, and is such that sum{k=1 to n} a(k) is coprime to n.
A161888
a(n) = the smallest positive integer that does not divide n, and is such that sum{k=1 to n} a(k) is coprime to n.
Terms
- a(0) =2a(1) =3a(2) =2a(3) =6a(4) =3a(5) =7a(6) =2a(7) =6a(8) =4a(9) =4a(10) =2a(11) =8a(12) =2a(13) =4a(14) =4a(15) =6a(16) =2a(17) =4a(18) =2a(19) =6a(20) =4a(21) =4a(22) =2a(23) =14a(24) =3a(25) =3a(26) =4a(27) =8a(28) =2a(29) =4
External references
- oeis: A161888