How many 5-digit numbers can be formed using the digits 1, 2, 3, 4, and 5 such that the number is divisible by 3, each digit is used at most once, and no two adjacent digits are the same? Let's think step by step and output the final answer within \boxed{}.
user