This is simply a recreational question about some numbers I came up with.
Definition: Let $x\in \Bbb N$ have decimal expansion $x=\overline{a_1a_2\dots a_n}$. Call $x$ a TARDIS number if $$a_1+a_n<a_2+\dots+a_{n-1}.$$
I call them TARDIS numbers because they're bigger on the inside than on the outside. Incidentally, the fictional telephone number of the TARDIS is 95475949, a TARDIS number!
They're new to the OEIS.
I believe the first few are
$$120, 130, 131, 140, 141, 142,\dots$$
The Question:
What is the formula for the $m$th term in the sequence of TARDIS numbers?
Thoughts:
I don't know.
Writing code that computes the TARDIS numbers less than or equal to, say, $10^k-1$, shouldn't be too difficult; here is what I have in mind (for $k=4$):
for r in [1..9] do
for s in [0..9] do
for t in [0..9] do
if t+r<s then
Print(t+(10*s)+(100*r), "\n");
fi;
od;
od;
od;
My guess is that one can't get anything simpler than the definition.
Please help :)
This is not an answer to the question, but just instructions on how to generate the first few examples in Python.
Generating examples in Python
Download & install Wingware 101 for your machine.
Download & install the latest Python.
Open up Wingware, and go to Project > New Project > Defaults I think. Save your project inside a folder named TARDIS_numbers on your Desktop. Call the project TARDIS_numbers as well.
If Projects panel is not displayed, open it with Tools menu > Projects.
Right-click the blank area in the Project panel and select "Create New File". Call it either main.py or TARDIS_numbers.py.
Copy / paste in the following Python code:
Debug the formula since I just coded it in the MSE editor and haven't tested it.
Optimize the formula with a smarter strategy (the above is just the naive / brute-force method), if you'd like to.
Ping me in chat if something goes wrong or you'd like some help!