a(1)=1. For n >= 2: If a(n-1) is coprime to n, then a(n) = the smallest integer > a(n-1) that is coprime to n. If a(n-1) is not coprime to n, then a(n) = the smallest integer > a(n-1) that is not coprime to n.

A163463

a(1)=1. For n >= 2: If a(n-1) is coprime to n, then a(n) = the smallest integer > a(n-1) that is coprime to n. If a(n-1) is not coprime to n, then a(n) = the smallest integer > a(n-1) that is not coprime to n.

Terms

    a(0) =1a(1) =3a(2) =6a(3) =8a(4) =9a(5) =10a(6) =11a(7) =13a(8) =14a(9) =15a(10) =16a(11) =18a(12) =19a(13) =23a(14) =26a(15) =28a(16) =29a(17) =31a(18) =32a(19) =34a(20) =37a(21) =39a(22) =40a(23) =42a(24) =43a(25) =45a(26) =48a(27) =49a(28) =50a(29) =51

External references