Make a 10 digit code using the digits 0-9 each once. Make another 10-digit code without any three adjacent code sequences repeating. How many unique codes can be made following these two rules?
For example:
code 1: 0,1,2,3,4,5,6,7,8,9
code 2 cannot contain 0,1,2 or 1,2,3 or 2,3,4 or ,3,4,5, etc. anywhere in its code.