5 divides a(n) except when a(n) == 1 (mod 5), which occurs only when the base 5 representation of n consists solely of digits '0' and '2' (conjecture). Positions n at which a(n) == 1 (mod 5) begin: [0, 2, 10,12, 50,52,60,62, 250,252,260,262,300,302,310,312, 1250,1252,1260,1262,1300,1302,1310,1312,1500,1502,1510,1512, 1550,1552,1560,1562, ...].