Solution 1
We start with the last two terms of the polynomial 1+n+2!n2+3!n3+4!n4+5!n5+6!n6, which are 5!n5+6!n6. This can simplify to 7206n5+n6, which can further simplify to 720n5(6+n). Notice that the prime factorization of 720 is 5⋅3⋅3⋅2⋅2⋅2⋅2. In order for 720n5(6+n) to be an integer, one of the parts must divide 5,3, and 2. Thus, one of the parts must be a multiple of 5,3, and 2, and the LCM of these three numbers is 30. This means
n5≡0(mod30)
or
6+n≡0(mod30)
Thus, we can see that n must equal 0(mod30) or −6(mod30). Note that as long as we satisfy 7206n5+n6, 2!,3!, and 4! will all divide into integers, as their prime factorizations will be fulfilled with the LCM being 30. E.g. 4!=2⋅2⋅2⋅2⋅3, and this will be divisible by 24⋅34⋅54. Now, since we know that n must equal 0(mod30) or −6(mod30) in order for the polynomial to be an integer, n≡0,24(mod30). To find how many integers fulfill the equation and are <2017, we take ⌊302017⌋ and multiply it by 2. Thus, we get 67⋅2=134.
~Solution by IronicNinja~
Solution 2
Taking out the 1+n part of the expression and writing the remaining terms under a common denominator, we get 7201(n6+6n5+30n4+120n3+360n2). Therefore the expression n6+6n5+30n4+120n3+360n2 must equal 720m for some positive integer m. Taking both sides mod 2, the result is n6≡0(mod2). Therefore n must be even. If n is even, that means n can be written in the form 2a where a is a positive integer. Replacing n with 2a in the expression, 64a6+192a5+480a4+960a3+1440a2 is divisible by 16 because each coefficient is divisible by 16. Therefore, if n is even, n6+6n5+30n4+120n3+360n2 is divisible by 16.
Taking the equation n6+6n5+30n4+120n3+360n2=720m mod 3, the result is n6≡0(mod3). Therefore n must be a multiple of 3. If n is a multiple of three, that means n can be written in the form 3b where b is a positive integer. Replacing n with 3b in the expression, 729b6+1458b5+2430b4+3240b3+3240b2 is divisible by 9 because each coefficient is divisible by 9. Therefore, if n is a multiple of 3, n6+6n5+30n4+120n3+360n2 is divisibly by 9.
Taking the equation n6+6n5+30n4+120n3+360n2=720m mod 5, the result is n6+n5≡0(mod5). The only values of n(mod 5) that satisfy the equation are n≡0(mod 5) and n≡4(mod 5). Therefore if n is 0 or 4 mod 5, n6+6n5+30n4+120n3+360n2 will be a multiple of 5.
The only way to get the expression n6+6n5+30n4+120n3+360n2 to be divisible by 720=16⋅9⋅5 is to have n≡0(mod2), n≡0(mod3), and n≡0 or 4(mod5). By the Chinese Remainder Theorem or simple guessing and checking, we see n≡0,24(mod30). Because no numbers between 2011 and 2017 are equivalent to 0 or 24 mod 30 (24+30⋅0 is the smallest and 0+30⋅67 is the largest), the answer is 302010×2=134.
Solution 3
Note that 1+n+2!n2+3!n3+4!n4+5!n5 will have a denominator that divides 5!. Therefore, for the expression to be an integer, 6!n6 must have a denominator that divides 5!. Thus, 6∣n6, and 6∣n. Let n=6m. Substituting gives 1+6m+2!62m2+3!63m3+4!64m4+5!65m5+6!66m6. Note that the first 5 terms are integers, so it suffices for 5!65m5+6!66m6 to be an integer. This simplifies to 5!65m5(m+1)=5324m5(m+1). It follows that 5∣m5(m+1). Therefore, m is either 0 or 4 modulo 5. However, we seek the number of n, and n=6m. By CRT, n is either 0 or 24 modulo 30, and the answer is 67+67=134.
-TheUltimate123
Solution 4 (Step Solution)
Clearly 1+n is an integer. The part we need to verify as an integer is, upon common denominator, 720360n2+120n3+30n4+6n5+n6. Clearly, the numerator must be even for the fraction to be an integer. Therefore, n6 is even and n is even, aka n=2k for some integer k. Then, we can substitute n=2k and see that 2n2 is trivially integral. Then, substitute for the rest of the non-confirmed-integral terms and get 4560k3+30k4+12k5+4k6. It is also clear that for this to be an integer, which it needs to be, the numerator has to be divisible by 3. The only term we worry about is the 4k6, and we see that k=3b for some integer b. From there we now know that n=6b. If we substitute again, we see that all parts except the last two fractions are trivially integral. In order for the last two fractions to sum to an integer we see that n5(6n+1)≡0(mod5), so combining with divisibility by 6, n is 24 or 0(mod30). There are 67 cases for each, hence the answer 134.