### Claim.
For every positive integer n≥3 there exists a positive integer k such that 512n−2−1=2n⋅(2k+1).
*Proof.* We prove the claim by mathematical induction on n.
For n=3 we have 512−1=32−1=8 (mod 16), so 512−1 is divisible by 23 but not by 24, therefore the claim holds for n=3. Assume the claim holds for some n, i.e. 512n−2−1=2n⋅(2k+1) for some positive integer k. Then
512n−1−1=(512n−2−1)(512n−2+1)=2n⋅(2k+1)(2n⋅(2k+1)+2)=2n+1⋅(2k+1)(2n−1(2k+1)+1),
and since (2k+1)(2n−1(2k+1)+1) is odd, the claim holds for n+1. This completes the proof. □
Regarding the initial statement of the problem, we will inductively define an appropriate kn for every n. Note that for n=1,n=2 and n=3 we can select k=2, i.e. k1=k2=k3=2. Assume the claim holds for some n, i.e. there exists some positive integer an such that 51kn−17=2n⋅an. If an is even, we can select kn+1=kn. If an is odd, we can define kn+1=kn+2n−2. Then we have
51kn+1−17=512n−2⋅(51kn−17)+17⋅(512n−2−1).
By the inductive assumption and the previously proven claim, we can conclude that there exists a positive integer k such that
51k+n+1−17=512n−2⋅2n⋅an+17⋅2n⋅(2k+1)=2n⋅(512n−2an+17(2k+1)).
Since an is odd, it follows that 512n−2an+17(2k+1) is even, therefore 51k+n+1−17 is indeed divisible by 2n+1.