11. Let $A$ be an $n$-element subset of the set $\{1,2, \cdots, 2017\}$, and any two numbers in $A$ are neither coprime nor have a divisibility relationship. Find the maximum value of $n$.
Take the set $A=\{1010,1012,1014, \cdots, 2016\}$ to satisfy the condition, at this time $n=1008-505+1=504$. For each odd number in the set $\{1,3,5, \cdots, 2017\}$, there must be a number in $A$ that is coprime with it, and for each even number in the set $\{2,4,6, \cdots, 1008\}$, there must be a number in $A$ that is a multiple of it, so the maximum value of $n$ is 504.