a(1) = 1, a(n) = smallest composite number greater than n and not occurring earlier if n is prime, or smallest prime number greater than n and not occurring earlier if n is composite.
A073922
a(1) = 1, a(n) = smallest composite number greater than n and not occurring earlier if n is prime, or smallest prime number greater than n and not occurring earlier if n is composite.
Terms
- a(0) =1a(1) =4a(2) =6a(3) =5a(4) =8a(5) =7a(6) =9a(7) =11a(8) =13a(9) =17a(10) =12a(11) =19a(12) =14a(13) =23a(14) =29a(15) =31a(16) =18a(17) =37a(18) =20a(19) =41a(20) =43a(21) =47a(22) =24a(23) =53a(24) =59a(25) =61a(26) =67a(27) =71a(28) =30a(29) =73
External references
- oeis: A073922