General Proof
Let $T_n$ be the number of tokens at a Chebyshev distance $n$ from X; fancy way of imagining squares around X of increasing distance $n$ from X.
The values of $T_n$ are;
$$T_1=8$$
$$T_2=16$$
$$T_3=24$$
$$...$$
$$T_n=n \times 8$$
Obviously, the goal is to move tokens towards X by replacing 3 tokens for 2. It makes the most sense to take tokens farther from X and place them closer. So, every move inward from a square will result in $\frac{2}{3}$ of the tokens.
Lets call $V_n$ the value of the tokens in $T_n$. As you move tokens towards X, the number of them decreases by $\frac{2}{3}$ each move.
We see that;
$$V_n=T_n \times \left(\frac{2}{3}\right)^n = 8n\left(\frac{2}{3}\right)^n$$
All we need to do now is solve the values of all the tokens, not forgetting the initial token at $X$..
$$Max = 1 + \sum_{n=1}^{\infty} V_n$$
$$Max = 1 + \sum_{n=1}^{\infty} 8n\left(\frac{2}{3}\right)^n=1+8\sum_{n=1}^{\infty} n\left(\frac{2}{3}\right)^n$$
We know that $\forall x \in (-1,1)$;
$$f(x)=\sum_{n=1}^{\infty} nx^n = \frac{x}{(x-1)^2}$$
So, substituting $x=\frac{2}{3}$, we get;
$$Max = 1 + 8 \times f\left(\frac{2}{3}\right) = 1 + 8 \times \frac{\frac{2}{3}}{(\frac{2}{3}-1)^2}$$
$$Max = 1 + \frac{8 \times \frac{2}{3}}{\frac{1}{3}^2}$$
$$Max = 1 + \frac{8 \times 2 \times 9}{3}=49$$
Finite maximum
So that is the theoretical number of tokens we can get to X. Actually achieving this is another matter since it would require an infinite number of moves. Thus, in any number of finite moves, the best we could achieve is 48 tokens.
Notice that in order to get 48 tokens, we need to make moves that put 47 tokens on X. However, you can't put an odd number since the rules state you can only remove 3 and add 2. Thus, we can't achieve 48 directly by always moving inward.
Is there another way to get tokens on X? Thanks to
@julian-rosen for pointing it out. Lets say you have this situation:
0000
0XYZ
0000
Where $X=47$, $Y=1$, and $Z=2$.
You can take one from X and the two off from Z, adding two to Y. Then you will have 3 at Y, which you can remove and place 2 more at X, which gives you 48. This also works if Y and Z are reversed, however that requires more tokens closer, so the first alternative should be easier.
So, in order to have 1 left over in the $n=1$ square and 2 left over in the $n=2$ square with 47 tokens on X, we need the following:
- n=0: $47-T_0=47-1=46$ tokens added. $46 \times \frac{3}{2}=69$. Add one since we need an extra token in the $n=1$ square.
- n=1: $70-T_1=70-8=62$: tokens added. $62 \times \frac{3}{2}=93$. Add two since we need two extra tokens in the $n=2$ square.
- n=2: $95-T_2=95-16=79$ tokens added. $79 \times \frac{3}{2}=120$
So, we would need 120 tokens in the $n=3$ square. We already know that the $n=3$ square has 24, so we'd only need an additional 96 tokens. The value of these tokens is related to their distance from $X$ as we calculated before. Thus, their value is $V=96 \times \left(\frac{2}{3}\right)^3=28\frac{4}{9}$. From the above equation, we know that $8\sum_{n=1}^{\infty} n\left(\frac{2}{3}\right)^n=48$. We also know that the value of the tokens in the $n=1$ spot is $8\times\frac{2}{3}=5\frac{1}{3}$, and those in the $n=2$ spot are $16\times(\frac{2}{3})^2=7\frac{1}{9}$, and the existing 24 tokens in the $n=3$ square are also $24\times(\frac{2}{3})^3=7\frac{1}{9}$. Thus,
$$8\sum_{n=4}^{\infty} n\left(\frac{2}{3}\right)^n=8\sum_{n=1}^{\infty} n\left(\frac{2}{3}\right)^n - 5\frac{1}{3} - 7\frac{1}{9} - 7\frac{1}{9}=48-19\frac{5}{9}=28\frac{4}{9}$$
Therefore, in order to get 96 tokens into the $n=3$ square would require an infinite number of moves.
Thus, 48 tokens is not possible.
Construction method for 47 tokens
Lets say you have a square centred on X whose Chebyshev distance to $X$ is $n$ or less. We will denote all elements in this square to be the set $S_n$. Furthermore, we will access individual elements by their coordinates. $S_n(0,0)$ will be the square in the top left. $S_n(n,n)$ will be the element at X.
As well, we will denote perimeter squares whose Chebyshev distance to $X$ is exactly $n$. These perimeter squares will be called $P_n$ and will employ the same coordinate system.
We will move all the tokens in $P_n$ to $P_{n-1}$ as follows.
- Starting near the top left corner of $P_{n-1}$ (this is the square at $S_n(1,2)$), take all the tokens in the three squares above it (above to the left, directly above, and above to the right). If divisible by 3, then move them all (using the put 2 remove 3 rule). Otherwise, leave any remainder in the square to the right, or above. Since every square in $S_n$ has at least one token initially, this is always possible.
- Move to the right one square and repeat.
- Keep going until you have completed the top row. Now rotate the entire board counter clockwise, and continue the process.
Eventually, you will return to $S_n(1,1)$ and the only tokens left in $P_n$ will be the remainder after dividing by 3.
Continue this process until you are left with a $3\times 3$ square around X. Then move all the tokens into the middle using the remove 3 add 2 rule.
If $n$ is large enough, you will end up with a string of 2s in the remainder of each square leading to the centre with 45 tokens on $X$. These can be collapsed to a string of 1s leading to the centre with a 47 on $X$ using julian's move. The earliest this is possible is at $n=13$.
Example of 47 tokens
Here is an example of how to get 47 tokens. It uses the construction method outlined earlier; moving clockwise from the top left, move the outer tokens inward, propagating the remainder clockwise. Any remainder from the outer ring of tokens is left over in the square under the top left square.
The remainder tokens are shown as they are generated, but to keep the graphics small, they are ignored unless needed as we get closer to $X$.
n=13 n=12
111111111111111111111111111 1 n=11
111111111111111111111111111 11311311311311311311311313 1
111111111111111111111111111 1111111111111111111111111 113331313311331313311335
111111111111111111111111111 3111111111111111111111113 11111111111111111111111
111111111111111111111111111 1111111111111111111111111 31111111111111111111113
111111111111111111111111111 1111111111111111111111111 31111111111111111111113
111111111111111111111111111 3111111111111111111111113 11111111111111111111111
111111111111111111111111111 1111111111111111111111111 31111111111111111111111
111111111111111111111111111 1111111111111111111111111 11111111111111111111113
111111111111111111111111111 3111111111111111111111113 31111111111111111111113
111111111111111111111111111 1111111111111111111111111 31111111111111111111111
111111111111111111111111111 1111111111111111111111111 11111111111111111111113
111111111111111111111111111 3111111111111111111111113 11111111111111111111111
111111111111111111111111111 1111111111111111111111111 31111111111111111111113
111111111111111111111111111 1111111111111111111111111 31111111111111111111113
111111111111111111111111111 3111111111111111111111113 11111111111111111111111
111111111111111111111111111 1111111111111111111111111 31111111111111111111111
111111111111111111111111111 1111111111111111111111111 11111111111111111111113
111111111111111111111111111 3111111111111111111111113 31111111111111111111113
111111111111111111111111111 1111111111111111111111111 31111111111111111111111
111111111111111111111111111 1111111111111111111111111 11111111111111111111113
111111111111111111111111111 3111111111111111111111113 11111111111111111111111
111111111111111111111111111 1111111111111111111111111 31111111111111111111113
111111111111111111111111111 1111111111111111111111111 31111111111111111111113
111111111111111111111111111 3111111111111111111111113 51331133131331133131333
111111111111111111111111111 3113113113113113113113113 Outer ring tokens: 196
111111111111111111111111111 Tokens in outer ring: 164
Tokens in outer ring: 104
n=10
1171313331331333311337 n=9
311111111111111111113 3733331331333331339 n=8
311111111111111111113 3111111111111111113 23933133333333133b n=7
311111111111111111111 3111111111111111113 31111111111111113 3b133333333133b
111111111111111111113 3111111111111111113 31111111111111111 311111111111113
311111111111111111113 1111111111111111111 31111111111111113 311111111111113
111111111111111111111 3111111111111111113 11111111111111113 311111111111113
311111111111111111113 1111111111111111113 31111111111111113 311111111111113
311111111111111111113 3111111111111111113 11111111111111113 311111111111113
311111111111111111113 3111111111111111113 31111111111111113 111111111111113
111111111111111111113 3111111111111111111 31111111111111113 311111111111113
311111111111111111111 3111111111111111113 31111111111111113 311111111111113
311111111111111111111 3111111111111111113 31111111111111113 311111111111113
111111111111111111113 3111111111111111113 31111111111111113 311111111111113
311111111111111111113 1111111111111111113 31111111111111113 311111111111113
311111111111111111113 3111111111111111113 31111111111111111 311111111111113
311111111111111111113 3111111111111111111 31111111111111113 311111111111113
311111111111111111111 3111111111111111113 31111111111111113 d1333133333333b
111111111111111111113 3111111111111111113 b133313333333313b Outer ring: 192
111111111111111111113 9133313333333113339 Outer ring: 204
913331331333311333317 Outer ring: 212
Outer ring: 210
n=6
3b3333333133d n=5
3111111111113 23b33333333d n=4
3111111111113 31111111113 3b333333f n=3
3111111111113 31111111113 311111113 13b3333f n=2
3111111111113 31111111113 311111113 3111113 3b33f n=1
3111111111113 31111111113 311111113 3111113 31113 23bf
3111111111113 31111111113 311111113 3111113 31113 313
3111111111113 31111111113 311111113 3111113 31113 f3f
3111111111113 31111111113 311111113 3111113 f333f R: 68
3111111111113 31111111113 311111113 f13333f R: 92
3111111111113 31111111113 f1333333d R: 114
3111111111113 d133333333d Ring: 136
d13333333333b Ring: 156
Ring: 176
This leaves the final position before moving all the tokens to $X$ as:
23bf
3X3
f3f
With 68 tokens surrounding $X$. The first move is to take the 2 remainder tokens and one of the tokens surrounding $X$ and replace them with 2 tokens as follows:
02bf
5X3
f3f
We now have 69 tokens surrounding $X$. Trivially, we can remove all 69 and add 46 to $X$, leaving us with 47 tokens on $X$.