Find the smallest positive integer value of n for which (1+i)n(1−n)n−2 is a real number.
Let n be a positive integer. Then the number of common factors of n2 + 3n + 1 and n2 + 4n + 3 is