MathLabs

Problem 2

Find the largest positive integer NN such that the number of integers in {1,2,…,N}\{1,2,\dots,N\} divisible by 33 equals the number of integers divisible by 55 or 77 (or both).
Step 4 of 6: Rule out all N at least 69
D(N+105)=D(N)+2,min⁡69≤N≤173D(N)=1  ⟹  D(N)>0 for all N≥69.D(N+105)=D(N)+2,\qquad \min_{69\le N\le173}D(N)=1\implies D(N)>0\text{ for all }N\ge69.
Detailed analysis

The floor expression has period 105 up to a constant: D(N+105)=D(N)+2D(N+105)=D(N)+2. A direct finite check of 69≤N≤17369\le N\le173 gives min⁡D(N)=1\min D(N)=1. Adding 105 increases D by 2, so D(N)>0D(N)>0 for every N≥69N\ge69; hence every solution satisfies N<69N<69.