With p = prime(n), a(n) is the least composite k such that A001414(k) = p and k+p is prime, or 0 if there is no such k.

A346501

With p = prime(n), a(n) is the least composite k such that A001414(k) = p and k+p is prime, or 0 if there is no such k.

Terms

    a(0) =0a(1) =0a(2) =6a(3) =10a(4) =48a(5) =90a(6) =210a(7) =34a(8) =416a(9) =570a(10) =58a(11) =2652a(12) =930a(13) =1984a(14) =1184a(15) =1376a(16) =2820a(17) =118a(18) =1062a(19) =1830a(20) =3660a(21) =4020a(22) =2190a(23) =2370a(24) =1602a(25) =5340a(26) =9006a(27) =12702a(28) =6208a(29) =3090

External references