(a) Find the smallest number of lines drawn on the plane so that they produce exactly 2022 points of intersection. (Note: For 1 point of intersection, the minimum is 2; for 2 points, minimum is 3; for 3 points, minimum is 3; for 4 points, minimum is 4; for 5 points, the minimum is 4, etc.)
(b) What happens if the lines produce exactly 2023 intersections?
### Part (a)

1. **Understanding the Problem:**
   We need to find the smallest number of lines, \( k \), such that the lines produce exactly 2022 points of intersection. The maximum number of intersection points produced by \( k \) lines is given by:
   \[
   \binom{k}{2} = \frac{k(k-1)}{2}
   \]
   We need to find the smallest \( k \) such that:
   \[
   \frac{k(k-1)}{2} \geq 2022
   \]

2. **Solving the Inequality:**
   We solve the inequality:
   \[
   \frac{k(k-1)}{2} \geq 2022
   \]
   Multiplying both sides by 2:
   \[
   k(k-1) \geq 4044
   \]
   This is a quadratic inequality. To find the smallest integer \( k \), we solve the quadratic equation:
   \[
   k^2 - k - 4044 = 0
   \]
   Using the quadratic formula \( k = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \) with \( a = 1 \), \( b = -1 \), and \( c = -4044 \):
   \[
   k = \frac{1 \pm \sqrt{1 + 4 \cdot 4044}}{2} = \frac{1 \pm \sqrt{16177}}{2}
   \]
   Approximating the square root:
   \[
   \sqrt{16177} \approx 127.2
   \]
   Thus:
   \[
   k = \frac{1 + 127.2}{2} \approx 64.1
   \]
   Since \( k \) must be an integer, we take \( k = 65 \).

3. **Verification:**
   We verify if \( k = 65 \) is indeed the smallest number:
   \[
   \frac{65 \cdot 64}{2} = 2080
   \]
   Since 2080 is greater than 2022, we check \( k = 64 \):
   \[
   \frac{64 \cdot 63}{2} = 2016
   \]
   Since 2016 is less than 2022, the smallest \( k \) such that the number of intersection points is at least 2022 is \( k = 65 \).

4. **Conclusion for Part (a):**
   The smallest number of lines that produce exactly 2022 points of intersection is \( k = 65 \).

### Part (b)

1. **Understanding the Problem:**
   We need to find the smallest number of lines, \( k \), such that the lines produce exactly 2023 points of intersection.

2. **Solving the Inequality:**
   We use the same approach as in part (a). We need to find the smallest \( k \) such that:
   \[
   \frac{k(k-1)}{2} \geq 2023
   \]
   Using the same quadratic equation:
   \[
   k^2 - k - 4046 = 0
   \]
   Solving this using the quadratic formula:
   \[
   k = \frac{1 \pm \sqrt{1 + 4 \cdot 4046}}{2} = \frac{1 \pm \sqrt{16185}}{2}
   \]
   Approximating the square root:
   \[
   \sqrt{16185} \approx 127.2
   \]
   Thus:
   \[
   k = \frac{1 + 127.2}{2} \approx 64.1
   \]
   Since \( k \) must be an integer, we take \( k = 65 \).

3. **Verification:**
   We verify if \( k = 65 \) is indeed the smallest number:
   \[
   \frac{65 \cdot 64}{2} = 2080
   \]
   Since 2080 is greater than 2023, we check \( k = 64 \):
   \[
   \frac{64 \cdot 63}{2} = 2016
   \]
   Since 2016 is less than 2023, the smallest \( k \) such that the number of intersection points is at least 2023 is \( k = 65 \).

4. **Conclusion for Part (b):**
   The smallest number of lines that produce exactly 2023 points of intersection is \( k = 65 \).

The final answer is \( \boxed{ k = 65 } \) for both parts (a) and (b).