Hello SeqFans, a(n) is the smallest multiple of 3 (not yet present in S) that ends with "n". S = 21,12,3,24,15,36,27,18,39,210,111,312,213,114,315,216,117,318,219,120,... Best, É.