Problem 3
Determine all integers such that is an integer.
Step 3 of 4: The power of 3 in n is exactly one
Detailed analysis
Let . Expand . Since is odd, the constant terms cancel and the first term is , whose 3-adic valuation is . For a term with , if it is immediately divisible by . If , the product formula for shows , so the term has valuation at least . If , the same product formula gives , and , so the term has valuation at least . Thus . Since , we have , hence .