a(1)=1; for n>1, a(n) is smallest positive integer not occurring earlier in the sequence such that |a(n)-a(n-1)| is composite.
A111453
a(1)=1; for n>1, a(n) is smallest positive integer not occurring earlier in the sequence such that |a(n)-a(n-1)| is composite.
Terms
- a(0) =1a(1) =5a(2) =9a(3) =3a(4) =7a(5) =11a(6) =2a(7) =6a(8) =10a(9) =4a(10) =8a(11) =12a(12) =16a(13) =20a(14) =14a(15) =18a(16) =22a(17) =13a(18) =17a(19) =21a(20) =15a(21) =19a(22) =23a(23) =27a(24) =31a(25) =25a(26) =29a(27) =33a(28) =24a(29) =28
External references
- oeis: A111453