Context
I am a high school student and am curious about how many squares a knight can reach on an infinite chessboard. I drew some iterations out by hand and did a few in Python to find the sequence: $1, 9, 41, 108, 205, 325$ for the first few terms.
I found this sequence on the OEIS, Where I found the recurrence relation and the explicit formula.
$$ S_{n} = 3S_{n-1} - 3S_{n-2} + S_{n-3} \tag{1}$$
and
$$ S_{n} = 14n^{2}-6n+1+4\mathrm{sign}(n(n-1)(n-3)) $$
or
$$ S_{n} = 14n^{2}-6n+5\text{ for } n\geq 4 \tag{2}$$
What I know:
- Prove these two formulas are equivalent using induction
- Derive the explicit formula from the recurrence relation by using the characteristic equation
- Derive the recurrence relation from the explicit formula using generating functions.
However, for a satisfying result, I want to derive both these formulas directly from the sequence.
Question
Derive equation $(1)$ or $(2)$ from the sequence.
My approach
Note: I don't have experience in this area except in arithmetic and geometric sequences, but I am willing to learn new topics.
I have been trying to find a recurrence relation from the data, and then using the characteristic equation to find the closed function. I expected that finding the recurrence relation would be easier than the closed function since there are an infinite many functions that go through a finite many points. I came across a 'difference degree' method, but I checked up to the 12'th degree difference and they never became constant. I haven't come across any other method that I can use to find such a relation except 'just look at the data and find it'. I am aware I can use code to find this function by trial and error but that won't generalise as I need it to.
A higher generalisation
Amidst this question, I wondered how many squares an (a, b) leaper would reach in n many moves. I don't know how to generalise to this level. I don't even know how to approach it. My intuitive reasoning was that it might be the same for all a and b values since it would be just 'scaling' the (1, 2) leaper's pattern. I then simulated a few situations up to $n = 10$ for $ 0\leq a\leq 10$ and $ 0\leq b\leq 10$ and quickly saw this was wrong. The numbers start the same and then diverge at $n = 3$ and more at $n = 5, 7, 9...$. I plotted all this data on a spreadsheet, here is the link.
Another question: find a function $S(a, b, n)$ that outputs how many squares can an (a, b) leaper reach in n moves. Alternatively if I could also just get directions or topics to explore to approach this problem, that would also be appreciated.
Patterns
Below I have some patterns I generated using code to visualise the squares, It was helpful for me.


